Sha256: 7448f671efcf9cccb80dd90c319cf96c2ad91dd38e74ccaeed985b4d848423b3
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'methadone' require 'clearsight.rb' class App include Methadone::Main include Methadone::CLILogging include Methadone::SH # Create command line options here. Don't forget to document # them below in the show_help method. main do |command, *args| case command.to_s.to_sym when :deploy then Clearsight::Deploy.deploy(args) when :update then update when :help then show_help else puts "Invalid command." show_help end end def self.show_help puts "USAGE:" puts " deploy <setup>" puts " Deploys or sets up deployment to a remote server. Replaces gitdeploysetup." puts " update" puts " Updates the gem. Same as `gem update clearsight`." end def self.update print "Updating..." sh "gem update clearsight" puts "done." end arg :args, :optional version Clearsight::VERSION use_log_level_option go! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearsight-0.0.5 | bin/cs |