Class: Space::Action
- Inherits:
-
Object
- Object
- Space::Action
- 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
Defined Under Namespace
Classes: Execute, Handler, Local, Parser, Refresh, Remote, Scope, Unscope
Instance Attribute Summary (collapse)
-
- (Object) args
readonly
Returns the value of attribute args.
-
- (Object) project
readonly
Returns the value of attribute project.
-
- (Object) scope
readonly
Returns the value of attribute scope.
Instance Method Summary (collapse)
-
- (Action) initialize(project, scope, *args)
constructor
A new instance of Action.
- - (Object) run
Constructor Details
- (Action) initialize(project, scope, *args)
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 |