module Cuba::Bin
Constants
- VERSION
Public Instance Methods
argv()
click to toggle source
# File lib/cuba/bin.rb, line 33 def argv @args ||= begin ARGV.shift ARGV end @args.each_with_index do |arg, i| if arg[/\s/] @args[i] = "\"#{arg}\"" else @args[i] = arg end end @args end
deploy()
click to toggle source
# File lib/cuba/bin.rb, line 15 def deploy if ENV['CUBA_BIN_DEPLOY_PATH'] require ENV['CUBA_BIN_DEPLOY_PATH'] else %w(config/deploy deploy).each do |file| path = Dir.pwd + "/#{file}.rb" if File.file? path break require path end end end if defined? Deploy Deploy.new.run end end
server()
click to toggle source
# File lib/cuba/bin.rb, line 11 def server Daemon.new.run end