Sha256: 2518c1516fcc01eb20521448c85a0f006491a6844341618fca3e75c8388ae5d2
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
require 'thor' require 'blazing/commands' module Blazing class CLI < Thor default_task :help desc 'init', 'Generate a blazing config file' # # Bootstrap blazing by creating a sample config file # def init Blazing::Commands.run(:init) end desc 'setup [TARGET]', 'Setup local and remote repository/repositories for deployment' method_option :file, :type => :string, :aliases => '-f', :banner => 'Specify a configuration file' # # Setup a target to be deployed with blazing # def setup(target_name = nil) Blazing::Commands.run(:setup, :target_name => target_name, :options => options) end desc 'update [TARGET]', 'Re-Generate and uplaod hook based on current configuration' method_option :file, :type => :string, :aliases => '-f', :banner => 'Specify a configuration file' # # Update the target hook so it matches the settings in the config # def update(target_name = nil) Blazing::Commands.run(:update, :target_name => target_name, :options => options) end desc 'recipes [TARGET]', 'Run the recipes for the given target' # # Run the configured blazing recipes (used on remote machien) # def recipes(target_name) Blazing::Commands.run(:recipes, :target_name => target_name, :options => options) end desc 'goto [TARGET]', 'Open a shell for specified target' # # SSH to the server and cd into the app directory. Of course it also sets the appropriate RAILS_ENV # def goto(target_name) Blazing::Commands.run(:goto, :target_name => target_name, :options => options) end desc 'list', 'List available recipes' # # List the available blazing recipes # def list Blazing::Commands.run(:list) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.4.0.beta1 | lib/blazing/cli.rb |