class Rmd::Cli
Constants
- CONFIG_PATH
Public Class Methods
load_config()
click to toggle source
# File lib/rmd/cli.rb, line 13 def load_config fail(FileNotFound, 'Creds file not found. Ask DucLe for it') unless File.file?(CONFIG_PATH) config = YAML.load_file(File.expand_path(CONFIG_PATH)) Configure.set(config) end
Public Instance Methods
bash()
click to toggle source
# File lib/rmd/cli.rb, line 60 def bash Cli.load_config DeployService.bash(options[:server]) rescue Exception => e $stdout.puts(e.message) end
config()
click to toggle source
# File lib/rmd/cli.rb, line 69 def config Cli.load_config DeployService.config(options[:server]) rescue Exception => e $stdout.puts(e.message) end
deploy()
click to toggle source
# File lib/rmd/cli.rb, line 23 def deploy Cli.load_config DeployService.deploy(options[:server], options[:skip_assets]) rescue Exception => e $stdout.puts(e.message) end
logs()
click to toggle source
# File lib/rmd/cli.rb, line 41 def logs Cli.load_config DeployService.logs(options[:server]) rescue Exception => e $stdout.puts(e.message) end
nginx()
click to toggle source
# File lib/rmd/cli.rb, line 51 def nginx Cli.load_config DeployService.nginx(options[:server], options[:type]) rescue Exception => e $stdout.puts(e.message) end
restart()
click to toggle source
# File lib/rmd/cli.rb, line 32 def restart Cli.load_config DeployService.restart(options[:server]) rescue Exception => e $stdout.puts(e.message) end