Sha256: a453839f85982f989354456b64b598aabb0c0c9595ef16669e559dfe94e765cf

Contents?: true

Size: 523 Bytes

Versions: 16

Compression:

Stored size: 523 Bytes

Contents

module AlephExecutables
  class ImportEnvVariables
    def initialize(options)
      @rails_env = options[:rails_env] || 'development'
      @config_path = options[:config_path]
      @banner = options[:banner]

      Utils.fail('Need to supply config-path', @banner) unless @config_path
    end

    def execute!
      env_file = Utils.get_env_file(@rails_env)
      say "Importing #{File.join(@config_path, ImportEnvFile::ENV_YML)} to #{env_file}"
      ImportEnvFile.execute!(@config_path, @rails_env)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev bin/executables/import_env_variables.rb
aleph_analytics-0.4.8 bin/executables/import_env_variables.rb
aleph_analytics-0.4.7 bin/executables/import_env_variables.rb
aleph_analytics-0.4.4 bin/executables/import_env_variables.rb
aleph_analytics-0.4.2 bin/executables/import_env_variables.rb
aleph_analytics-0.4.1 bin/executables/import_env_variables.rb
aleph_analytics-0.3.0 bin/executables/import_env_variables.rb
aleph_analytics-0.2.0 bin/executables/import_env_variables.rb
aleph_analytics-0.1.0 bin/executables/import_env_variables.rb
aleph_analytics-0.0.6 bin/executables/import_env_variables.rb
aleph_analytics-0.0.5 bin/executables/import_env_variables.rb
aleph_analytics-0.0.4 bin/executables/import_env_variables.rb
aleph_analytics-0.0.3 bin/executables/import_env_variables.rb
aleph_analytics-0.0.2 bin/executables/import_env_variables.rb
aleph_analytics-0.0.1.alpha bin/executables/import_env_variables.rb
aleph_analytics-0.0.0.alpha bin/executables/import_env_variables.rb