Sha256: e8617f5ca2bd49bb08c4dc30ce8a1697c31df8469f8a0675200e33c5b6ffee19

Contents?: true

Size: 1.13 KB

Versions: 18

Compression:

Stored size: 1.13 KB

Contents

require 'FileUtils'
require 'thor'

module Uppercutbuild
  class CLI < Thor
	  include Thor::Actions
	
  	def initialize(*)
  		super
  		
  		@proj = Uppercutbuild::Project.new
  	end
	
    desc "initialize", "initializes uppercut build in the current directory"
	  method_options :location => :string
    def init(*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

18 entries across 18 versions & 1 rubygems

Version Path
uppercutbuild-1.4.2.0 bin/uppercut/cli.rb
uppercutbuild-1.4.1.0 bin/uppercut/cli.rb
uppercutbuild-1.4.0.0 bin/uppercut/cli.rb
uppercutbuild-1.3.0.0 bin/uppercut/cli.rb
uppercutbuild-1.2.0.0 bin/uppercut/cli.rb
uppercutbuild-1.1.2.0 bin/uppercut/cli.rb
uppercutbuild-1.1.0.0 bin/uppercut/cli.rb
uppercutbuild-1.0.6.0 bin/uppercut/cli.rb
uppercutbuild-1.0.5.0.20101008 bin/uppercut/cli.rb
uppercutbuild-1.0.5.0 bin/uppercut/cli.rb
uppercutbuild-1.0.4.0 bin/uppercut/cli.rb
uppercutbuild-1.0.3.0.20100818 bin/uppercut/cli.rb
uppercutbuild-1.0.2.0.20100810 bin/uppercut/cli.rb
uppercutbuild-1.0.1.0.20100809 bin/uppercut/cli.rb
uppercutbuild-1.0.0.0.20100806 bin/uppercut/cli.rb
uppercutbuild-0.9.0.346.20100805 bin/uppercut/cli.rb
uppercutbuild-0.9.0.345.20100805 bin/uppercut/cli.rb
uppercutbuild-0.9.0.340 bin/uppercut/cli.rb