Sha256: faa3a2f0e42773ea87fc9cf43d396c3826c14979373fdc0b38062c01380ac645

Contents?: true

Size: 1.42 KB

Versions: 12

Compression:

Stored size: 1.42 KB

Contents

require 'tasks/config'

#-------------------------------------------------------------------------------
# Distribution and Packaging
#-------------------------------------------------------------------------------
if pkg_config = Configuration.for_if_exist?("packaging") then

  require 'gemspec'
  require 'rake/gempackagetask'
  require 'rake/contrib/sshpublisher'

  namespace :dist do

    Rake::GemPackageTask.new(Launchy::GEM_SPEC) do |pkg|
      pkg.need_tar = pkg_config.formats.tgz
      pkg.need_zip = pkg_config.formats.zip
    end

    desc "Install as a gem"
    task :install => [:clobber, :package] do
      sh "sudo gem install pkg/#{Launchy::GEM_SPEC.full_name}.gem"
    end

    desc "Uninstall gem"
    task :uninstall do 
      sh "sudo gem uninstall -x #{Launchy::GEM_SPEC.name}"
    end

    desc "dump gemspec"
    task :gemspec do
      puts Launchy::GEM_SPEC.to_ruby
    end

    desc "reinstall gem"
    task :reinstall => [:uninstall, :repackage, :install]

    desc "distribute copiously"
    task :copious => :package  do
      gems = Launchy::SPECS.collect { |s| "#{s.full_name}.gem" }
      Rake::SshFilePublisher.new('jeremy@copiousfreetime.org',
                               '/var/www/vhosts/www.copiousfreetime.org/htdocs/gems/gems',
                               'pkg', *gems).upload
      sh "ssh jeremy@copiousfreetime.org rake -f /var/www/vhosts/www.copiousfreetime.org/htdocs/gems/Rakefile"
    end 
 end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/launchy-0.3.5/tasks/distribution.rake
middleman-0.12.2 lib/middleman/vendor/gems/gems/launchy-0.3.5/tasks/distribution.rake
launchy-0.3.5 tasks/distribution.rake
middleman-0.12.1 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.10.17 vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.10.16 vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.10.15 vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
middleman-0.10.14 vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake
launchy-0.3.3 tasks/distribution.rake