Sha256: e60f448e310b67c8d6c7e720c10295fec18a8d26896a5a8ba512c0504a2226de

Contents?: true

Size: 888 Bytes

Versions: 3

Compression:

Stored size: 888 Bytes

Contents

$: << 'lib'
require 'dolphindeploy'

# rake dolphin:deploy [env, server]
# rake deploy['local', 'localhost']

namespace :dolphin do
  desc "Dolphin Deployment"
  task :deploy, :env, :server  do |t, args|
    deployment = Deployment.load()    
    creator = DeployCommandCreator.new()
    
    env = args.env.to_sym
    server = args.server
    
    mvc = creator.convert_from_config(deployment, env)
    mvc.deploy server
    
  end
  
  desc "Clean up output directory"
  task :cleanup, :env, :server  do |t, args|
    deployment = Deployment.load()    
    creator = DeployCommandCreator.new()
    
    env = args.env.to_sym
    server = args.server
    
    mvc = creator.convert_from_config(deployment, env)
    directory_to_clean = mvc.get_location(server)
    
    dir = DirectoryCleanup.new
    dir.remove_last(directory_to_clean, 10)
  end
end
 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dolphindeploy-0.0.3-universal-dotnet lib/dolphindeploy_rake.rb
dolphindeploy-0.0.2-universal-dotnet lib/dolphindeploy_rake.rb
dolphindeploy-0.0.1 lib/dolphindeploy_rake.rb