Sha256: 1e189c48006de3a7589f2ea87bad35fe85b900ec8b54d992a219bee41b7df8ba
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
#!/usr/bin/env ruby # -*- mode: ruby -*- require 'rda' class RdaCommand < Thor desc 'rvm ACTION', 'Set up RVM. Available actions: setup, discard.' def rvm(action) Rda::Rvm.new.send(action.to_sym) end desc 'nginx ACTION', 'Manage settings of nginx. Available actions: setup, discard.' method_option :environment, aliases: "-e", desc: "Set the environment of the application" method_option :hostname, aliases: "-h", desc: "Set the hostname of the application" def nginx(action) Rda::Nginx.new.send(action.to_sym, options) end desc 'app ACTION', 'Manage the lifecycle of the application. Available actions: restart, release.' def app(action) Rda::App.new.send(action.to_sym) end end RdaCommand.start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rda-0.3.3 | bin/rda |
rda-0.3.2 | bin/rda |