Class: Cosmo::Shell::Group

Inherits:
Bombshell::Environment
  • Object
show all
Includes:
Bombshell::Shell
Defined in:
lib/cosmo/shell.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Group

Returns a new instance of Group.



22
23
24
# File 'lib/cosmo/shell.rb', line 22

def initialize(name)
  @name = name
end

Instance Method Details

#mainObject



35
36
37
# File 'lib/cosmo/shell.rb', line 35

def main
  quit
end

#nameObject



27
28
29
# File 'lib/cosmo/shell.rb', line 27

def name
  @name
end

#run(command) ⇒ Object



31
32
33
# File 'lib/cosmo/shell.rb', line 31

def run command
  Cosmo.groups[@name].run command
end