Class: Space::App::Command
- Inherits:
-
Object
- Object
- Space::App::Command
- Defined in:
- lib/space/app/command.rb,
lib/space/app/command/builtin.rb,
lib/space/app/command/development.rb
Defined Under Namespace
Classes: Execute, Local, Refresh, Remote, Scope, Unscope
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(project, scope, *args) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Constructor Details
#initialize(project, scope, *args) ⇒ Command
Returns a new instance of Command.
14 15 16 17 18 |
# File 'lib/space/app/command.rb', line 14 def initialize(project, scope, *args) @project = project @scope = scope @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
12 13 14 |
# File 'lib/space/app/command.rb', line 12 def args @args end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
12 13 14 |
# File 'lib/space/app/command.rb', line 12 def project @project end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
12 13 14 |
# File 'lib/space/app/command.rb', line 12 def scope @scope end |
Instance Method Details
#run ⇒ Object
20 21 22 |
# File 'lib/space/app/command.rb', line 20 def run raise 'not implemented' end |