33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/cwp.rb', line 33
def configuration_help_text
if RUBY_PLATFORM =~ /linux/
puts "Please pass configuration parameters through file by one of the below option".colorize(:white)
puts "1 ]".colorize(:white)+" /etc/cwp.conf".colorize(:white)
puts "2 ]".colorize(:white)+" /HOME_DIR/.cwp/cwp.conf".colorize(:white)
puts "3 ]".colorize(:white)+" CURRENT_DIR/cwp.conf".colorize(:white)
puts "4 ]".colorize(:white)+" Pass configuration file path as argument EX:".colorize(:white)+" cwp deploy config_path=PATH_TO_YOUR_CONFIGURATION_FILE".colorize(:yellow)
puts "[ NOTE ]".colorize(:blue)+" File format of cwp.conf".colorize(:white)
puts "parameters:".colorize(:yellow)
puts " login:".colorize(:yellow)+" xxx".colorize(:white)
puts " password:".colorize(:yellow)+" yyy".colorize(:white)
puts " url:".colorize(:yellow)+" http://example.com".colorize(:white)
puts " organization:".colorize(:yellow)+" abc".colorize(:white)
puts " compute_resource:".colorize(:yellow)+" peru".colorize(:white)
else
puts "1 ]".colorize(:white)+" Pass configuration file path as argument EX:".colorize(:white)+" cwp deploy config_path=PATH_TO_YOUR_CONFIGURATION_FILE".colorize(:yellow)
puts "[ NOTE ]".colorize(:blue)+" File format of cwp.conf".colorize(:white)
puts "parameters:".colorize(:yellow)
puts " login:".colorize(:yellow)+" xxx".colorize(:white)
puts " password:".colorize(:yellow)+" yyy".colorize(:white)
puts " url:".colorize(:yellow)+" http://example.com".colorize(:white)
puts " organization:".colorize(:yellow)+" abc".colorize(:white)
puts " compute_resource:".colorize(:yellow)+" peru".colorize(:white)
end
end
|