Sha256: 6fa1017dc61c0b153226670cf07cbce7094eb54fd811decd28857c9acac36ac1

Contents?: true

Size: 630 Bytes

Versions: 11

Compression:

Stored size: 630 Bytes

Contents

# This helper file provides tasks to set the environment. This is just for convenience
# so that these tasks might be a dependency for other tasks

namespace :environment do

  full_configuration[:environments].each_key do |env|
    # Sets the environment to #{env}
    task env do
      configuration.environment = env
    end

    namespace env do
      full_configuration[:environments][env].each_key do |target|
        # Sets the environment to #{env} and the target to #{target}
        task target do
          configuration.environment = env
          configuration.target = target
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fulmar-1.5.2 lib/fulmar/domain/task/environment.rake
fulmar-1.5.1 lib/fulmar/domain/task/environment.rake
fulmar-1.5.0 lib/fulmar/domain/task/environment.rake
fulmar-1.4.2 lib/fulmar/domain/task/environment.rake
fulmar-1.4.1 lib/fulmar/domain/task/environment.rake
fulmar-1.4.0 lib/fulmar/domain/task/environment.rake
fulmar-1.3.0 lib/fulmar/domain/task/environment.rake
fulmar-1.2.1 lib/fulmar/domain/task/environment.rake
fulmar-1.2.0 lib/fulmar/domain/task/environment.rake
fulmar-1.1.0 lib/fulmar/domain/task/environment.rake
fulmar-1.0.0 lib/fulmar/domain/task/environment.rake