Class: Space::App::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/space/app/command.rb,
lib/space/app/command/builtin.rb,
lib/space/app/command/development.rb

Direct Known Subclasses

Execute, Local, Refresh, Remote, Scope, Unscope

Defined Under Namespace

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



12
13
14
# File 'lib/space/app/command.rb', line 12

def args
  @args
end

#projectObject (readonly)

Returns the value of attribute project.



12
13
14
# File 'lib/space/app/command.rb', line 12

def project
  @project
end

#scopeObject (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

#runObject



20
21
22
# File 'lib/space/app/command.rb', line 20

def run
  raise 'not implemented'
end