lib/vulcan/cli.rb in vulcan-0.0.2 vs lib/vulcan/cli.rb in vulcan-0.0.3

- old
+ new

@@ -23,14 +23,14 @@ method_option :verbose, :aliases => "-v", :desc => "show the full build output", :type => :boolean def build app = read_config[:app] || "need a server first, use vulcan create" - command = options[:command] || "./configure --prefix #{prefix} && make install" name = options[:name] || File.basename(Dir.pwd) output = options[:output] || "/tmp/#{name}.tgz" prefix = options[:prefix] || "/app/vendor/#{name}" source = options[:source] || Dir.pwd + command = options[:command] || "./configure --prefix #{prefix} && make install" server = URI.parse(ENV["MAKE_SERVER"] || "http://#{app}.herokuapp.com") Dir.mktmpdir do |dir| puts ">> Packaging local directory" %x{ cd #{source} && tar czvf #{dir}/input.tgz . 2>&1 }