Sha256: cf4a2f10615c574f359b9d07de95ee8be6ba8c4dc5b355acea8675e800d189db

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

# typed: true
# frozen_string_literal: true

module Tapioca
  module EnvHelper
    extend T::Sig
    extend T::Helpers

    requires_ancestor { Thor }

    sig { params(options: T::Hash[Symbol, T.untyped]).void }
    def set_environment(options) # rubocop:disable Naming/AccessorMethodName
      ENV["RAILS_ENV"] = ENV["RACK_ENV"] = options[:environment]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tapioca-0.10.1 lib/tapioca/helpers/env_helper.rb
tapioca-0.10.0 lib/tapioca/helpers/env_helper.rb
tapioca-0.9.4 lib/tapioca/helpers/env_helper.rb
tapioca-0.9.3 lib/tapioca/helpers/env_helper.rb
tapioca-0.9.2 lib/tapioca/helpers/env_helper.rb
tapioca-0.9.1 lib/tapioca/helpers/env_helper.rb
tapioca-0.9.0 lib/tapioca/helpers/env_helper.rb