Sha256: 3462d3d7f09f85f49af055d3f0d420d895bdbe73f1249f3cb2d4405ba7792d66
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'FileUtils' require 'thor' module Uppercutbuild class CLI < Thor include Thor::Actions def initialize(*) super @proj = Uppercutbuild::Project.new end desc "install", "installs uppercut build in the current directory" method_options :location => :string def install(*names) #@proj.ensure_default_config loc = @proj.get_location cl = options['location'] loc = cl unless cl.nil? Uppercutbuild::Loader.load puts "UppercuT has been added to this project. Please look through the lib directory for items you don't need. NAnt is still required at the current time." end desc "upgrade", "upgrades the uppercut 'build' directory" method_options :location => :string def upgrade(*names) #@proj.ensure_default_config loc = @proj.get_location cl = options['location'] loc = cl unless cl.nil? Uppercutbuild::Loader.upgrade puts "The build folder has been updated. Please check the release logs for items outside of this folder that may need to be updated." end def self.source_root File.dirname(__FILE__) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uppercutbuild-0.9.0.337 | bin/uppercut/cli.rb |