Class: PoolParty::Installers::BaseInstaller

Inherits:
Object
  • Object
show all
Includes:
Pinger, Remote
Defined in:
lib/poolparty/installers/base_installer.rb

Direct Known Subclasses

Ec2, Vmrun

Instance Method Summary collapse

Methods included from Pinger

included

Methods included from Remote

#are_any_nodes_exceeding_minimum_runtime?, #are_too_few_instances_running?, #are_too_many_instances_running?, available, #execute!, #list_of_instances, #list_of_nodes_exceeding_minimum_runtime, #netssh, #nodes, #remote_rsync_command, #remote_ssh_array, #remote_ssh_string, #rsync, #rsync_command, #rsync_storage_files_to, #rsync_storage_files_to_command, #rsync_to, #rsync_to_command, #run_command_on, #run_command_on_command, #run_command_on_instance_number, #run_local, #run_remote, #scp_array, #scp_to_command, #simplest_run_remote, #ssh_array, #ssh_command, #ssh_into, #ssh_into_instance_number, #ssh_options, #ssh_string, #target_host

Constructor Details

#initializeBaseInstaller

Returns a new instance of BaseInstaller.



8
9
10
11
12
# File 'lib/poolparty/installers/base_installer.rb', line 8

def initialize
  self.__send__ :welcome_message
  commands.each {|c| self.__send__ c.to_sym }
  self.__send__ :closing_message
end

Instance Method Details

#closing_messageObject



38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/poolparty/installers/base_installer.rb', line 38

def closing_message
closing_message = <<-EOE
You are now set to ride the waves with PoolParty! You'll notice there is a clouds.rb file in your current directory. You can start your new cloud
by typing:

cloud start

You can start your clouds.rb. More samples are available here: 
  http://github.com/auser/poolparty-examples/tree/master
EOE
  say closing_message
end

#commandsObject



51
52
53
# File 'lib/poolparty/installers/base_installer.rb', line 51

def commands
  @commands ||= []
end

#welcome_messageObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/poolparty/installers/base_installer.rb', line 14

def welcome_message
  welcome_msg = <<-EOE
We are going to take you through the installation process of PoolParty.

First, we'll setup your environment so using PoolParty will be a breeze
  EOE
          
  colored_say "Welcome to PoolParty!", :help
  say welcome_msg
  begin
    t = colored_ask "Press enter to continue or Ctrl+C to exit"
  rescue Exception => e
    say <<-EOE

Cancelled PoolParty installation

You can always restart this by typing:
  install-poolparty
EOE
    exit 0
  end
  
end