Sha256: 792868e63d62af6d6c969ab8a7029f95262b39018158dd3a8f7ef4e18063f43f

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

namespace :tools do
  task :composer do
    bin_file = File.join(Hobo.project_bin_path, "composer.phar")
    unless File.exists?(bin_file)
      Hobo.ui.success "Getting composer.phar"
      FileUtils.mkdir_p File.dirname(bin_file)
      Dir.chdir File.dirname(bin_file) do
        shell "php", "-r", "eval('?>'.file_get_contents('https://getcomposer.org/installer'));", realtime: true, indent: 2
      end
      Hobo.ui.separator
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.7 lib/hobo/tasks/tools.rb
hobo-inviqa-0.0.6 lib/hobo/tasks/tools.rb
hobo-inviqa-0.0.4 lib/hobo/tasks/tools.rb
hobo-inviqa-0.0.3 lib/hobo/tasks/tools.rb
hobo-inviqa-0.0.2 lib/hobo/tasks/tools.rb