Class: InstallerRunner

Inherits:
Object show all
Defined in:
lib/install.rb

Overview

Installer runner.

Class Method Summary collapse

Class Method Details

.appmakersObject



46
47
48
49
# File 'lib/install.rb', line 46

def self.appmakers
  encoding_style
  app_maker
end

.cookObject



21
22
23
24
# File 'lib/install.rb', line 21

def self.cook
  encoding_style
  nyasocom2_custom_name
end

.createObject



16
17
18
19
# File 'lib/install.rb', line 16

def self.create
  encoding_style
  nyasocom_sun_custom_name
end

.databaseObject



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/install.rb', line 51

def self.database
  encoding_style
  two = ARGV[1]

  pt = /\Apostgresql\z/
  pg = /\A--pg\z/

  if two.nil?
    puts "\nnyasocom_pg project, clone command.\n\nheat db postgresql\n\nheat db --pg\n\n"
  elsif two.match?(pt)
    postgresql
  elsif two.match?(pg)
    postgresql
  else
    puts 'No such option is found, please refer to the documentation.'
  end
end

.downloadObject



26
27
28
29
# File 'lib/install.rb', line 26

def self.download
  encoding_style
  nyasocom_command
end

.installObject



11
12
13
14
# File 'lib/install.rb', line 11

def self.install
  encoding_style
  nyasocom_custom_name
end

.nyasocom2_downloadObject



31
32
33
34
# File 'lib/install.rb', line 31

def self.nyasocom2_download
  encoding_style
  nyasocom2_command
end

.nyasocom3_downloadObject



36
37
38
39
# File 'lib/install.rb', line 36

def self.nyasocom3_download
  encoding_style
  nyasocom3_command
end

.nyasocom_app_downloadObject



41
42
43
44
# File 'lib/install.rb', line 41

def self.nyasocom_app_download
  encoding_style
  nyasocom_app_command
end