Skip to content

Commit

Permalink
added the lib/ripple.rb to the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Apr 23, 2013
1 parent 831ab0a commit 7c742f9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions lib/ripple.rb
@@ -0,0 +1,34 @@
namespace :ripple do
desc "Restores nuget package files"
task :restore do
puts 'Restoring all the nuget package files'
sh 'ripple restore'
end

desc "Updates nuget package files to the latest"
task :update do
puts 'Updating all the nuget package files'
sh 'ripple update'
end

desc "creates a history file for nuget dependencies"
task :history do
sh 'ripple history'
end

desc "publishes all the nuget's published by this solution"
task :publish do
nuget_api_key = ENV['apikey']
server = ENV['server']
cmd = "ripple publish #{BUILD_NUMBER} #{nuget_api_key}"
cmd = cmd + " --server #{server}" unless server.nil?
sh cmd
end

desc "packages the nuget files from the nuspec files in packaging/nuget and publishes to /artifacts"
task :package => [:history] do
sh "ripple local-nuget --version #{BUILD_NUMBER} --destination artifacts"
end
end


4 changes: 2 additions & 2 deletions rakefile.rb
@@ -1,5 +1,6 @@
require 'bundler/setup'
require 'rubygems/package_task'
require 'ripple/ripple'

COMPILE_TARGET = ENV['config'].nil? ? "debug" : ENV['config']
CLR_TOOLS_VERSION = "v4.0.30319"
Expand Down Expand Up @@ -124,7 +125,6 @@ def cleanFile(file)

desc "Creates the gem for fubudocs.exe"
task :create_gem do
cleanDirectory 'lib'
cleanDirectory 'bin'
cleanDirectory 'pkg'

Expand All @@ -147,7 +147,7 @@ def cleanFile(file)
s.platform = Gem::Platform::RUBY
s.name = 'ripple'
s.version = BUILD_NUMBER
s.files = Dir['bin/**/*']
s.files = Dir['bin/**/*'] + Dir['lib/*.rb']
s.bindir = 'bin'
s.executables << 'ripple'

Expand Down

0 comments on commit 7c742f9

Please sign in to comment.