Sha256: 9e96c8cf1d2049788c97be3bf023aecc328ef14b40a11bc63e8e2bec2ca2de2c
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
#!/usr/bin/env ruby $LOAD_PATH << 'lib' require 'rubygems' require 'commander/import' require 'shaman' # require 'pry' program :version, Shaman::VERSION program :description, 'Shaman cli for labs' program :help_formatter, :compact command :init do |c| c.syntax = 'shaman init [-f] [-t]' c.description = 'Initialize your project' c.option '-f', '--file FILE', String, 'Application file path' c.option '-t', '--token TOKEN', String, 'Environment token' c.option '-u', '--user EMAIL', String, 'Labs user email' c.action do |_args, options| Shaman::Init.init(options) end end command :deploy do |c| c.syntax = 'shaman deploy' c.description = 'Deploy a release' c.option '-m', '--message MESSAGE', String, 'Changelog message' c.option '-f', '--file FILE', String, 'Release path' c.option '-p', '--proguard FILE', String, 'Add aditional proguard mapping' c.option '-t', '--token TOKEN', String, 'Use different environment token' c.option '-c', '--config FILE', String, 'Use different config file' c.option '-d', '--deployer EMAIL', String, 'Labs deployer email' c.option '-g', '--git', 'Use git for deployer email and message (overrides any manual settings!)' c.option '-C', '--commit COMMIT', String, 'which commit to use instead of HEAD' c.action do |_args, options| begin Shaman::Deploy.new(options).deploy rescue => e say_error e.message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shaman_cli-2.0.0 | exe/shaman |