Sha256: dc24908fb2f76cdd52bcd927a4e45894b4db7a9ad111d284e847ab12edb12bb1

Contents?: true

Size: 533 Bytes

Versions: 8

Compression:

Stored size: 533 Bytes

Contents

desc "Tasks to retrieve common tools"
hidden
namespace :tools do

  desc "Fetch composer"
  task :composer do
    bin_file = File.join(Hem.project_bin_path, "composer.phar")
    unless File.exists?(bin_file)
      Hem.ui.success "Getting composer"
      FileUtils.mkdir_p File.dirname(bin_file)
      run "cd bin && php -r \"readfile('https://getcomposer.org/installer');\" | php", :realtime => true, :indent => 2
    else
      Hem.ui.success "Composer already available in bin/composer.phar"
    end
    Hem.ui.separator
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hem-1.2.4 lib/hem/tasks/tools.rb
hem-1.2.3 lib/hem/tasks/tools.rb
hem-1.2.2 lib/hem/tasks/tools.rb
hem-1.2.1 lib/hem/tasks/tools.rb
hem-1.2.0 lib/hem/tasks/tools.rb
hem-1.1.2 lib/hem/tasks/tools.rb
hem-1.1.1 lib/hem/tasks/tools.rb
hem-1.1.0 lib/hem/tasks/tools.rb