Class: Vito::ShellInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/vito/shell_initializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#runObject



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