Class: Space::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/space/action.rb,
lib/space/action/parser.rb,
lib/space/action/builtin.rb,
lib/space/action/handler.rb,
lib/space/action/development.rb

Direct Known Subclasses

Execute, Local, Refresh, Remote, Scope, Unscope

Defined Under Namespace

Classes: Execute, Handler, Local, Parser, Refresh, Remote, Scope, Unscope

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Action) initialize(project, scope, *args)

Returns a new instance of Action



16
17
18
19
20
21
# File 'lib/space/action.rb', line 16

def initialize(project, scope, *args)
  @project = project
  @scope   = scope
  @args    = args
  log "ACTION #{self.class.name.demodulize} (#{scope.map(&:name).inspect})"
end

Instance Attribute Details

- (Object) args (readonly)

Returns the value of attribute args



14
15
16
# File 'lib/space/action.rb', line 14

def args
  @args
end

- (Object) project (readonly)

Returns the value of attribute project



14
15
16
# File 'lib/space/action.rb', line 14

def project
  @project
end

- (Object) scope (readonly)

Returns the value of attribute scope



14
15
16
# File 'lib/space/action.rb', line 14

def scope
  @scope
end

Instance Method Details

- (Object) run



23
24
25
# File 'lib/space/action.rb', line 23

def run
  raise 'not implemented'
end