Class: Vito::ShellInitializer
- Inherits:
-
Object
- Object
- Vito::ShellInitializer
- Defined in:
- lib/vito/shell_initializer.rb
Instance Attribute Summary collapse
-
#ssh ⇒ Object
readonly
Returns the value of attribute ssh.
Instance Method Summary collapse
-
#initialize(args) ⇒ ShellInitializer
constructor
A new instance of ShellInitializer.
- #run ⇒ Object
-
#server(*args, &block) ⇒ Object
called by the vito.rb file.
Constructor Details
#initialize(args) ⇒ ShellInitializer
Returns a new instance of ShellInitializer.
7 8 9 |
# File 'lib/vito/shell_initializer.rb', line 7 def initialize(args) @installation_specs = File.open("vito.rb").read end |
Instance Attribute Details
#ssh ⇒ Object (readonly)
Returns the value of attribute ssh.
5 6 7 |
# File 'lib/vito/shell_initializer.rb', line 5 def ssh @ssh end |
Instance Method Details
#run ⇒ Object
11 12 13 |
# File 'lib/vito/shell_initializer.rb', line 11 def run run_vito_file end |
#server(*args, &block) ⇒ Object
called by the vito.rb file
16 17 18 |
# File 'lib/vito/shell_initializer.rb', line 16 def server(*args, &block) Vito::Server.new.instance_eval &block end |