lib/fulmar/domain/task/versions.rake in fulmar-1.0.0 vs lib/fulmar/domain/task/versions.rake in fulmar-1.1.0
- old
+ new
@@ -1,15 +1,10 @@
include Fulmar::Domain::Service::Helper::CommonHelper
namespace :versions do
-
@versioned_servers = {}
- configuration.each do |env, target, data|
- end
-
-
full_configuration[:environments].each_pair do |env, targets|
next if env == :all
targets.each_pair do |target, config|
@versioned_servers["#{env}:#{target}"] = config if config[:type].to_s == 'rsync_with_versions'
@@ -21,11 +16,11 @@
@versioned_servers.each_key do |env|
desc "List available versions for environment \"#{env}\""
task env do
configuration.environment = env.split(':').first
configuration.target = env.split(':').last
- file_sync.list_releases(false).each{|item| puts item}
+ file_sync.list_releases(false).each { |item| puts item }
end
end
end
namespace :clean do
@@ -36,9 +31,7 @@
configuration.target = env.split(':').last
file_sync.cleanup
end
end
end
-
-
end
end