Sha256: 4b728e340319b254bf3b2550c2f2effd8c14bd4abc4fd7c0572e9e4224512538
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
require 'awesome_print' require 'deliv/deploy/config' require 'deliv/deploy/git' require 'deliv/deploy/railtie' if defined?(Rails) require 'deliv/deploy/version' module Deliv module Deploy REQUIRED_ENV = %w[AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION].freeze class ConfigError < StandardError; end def self.verify_env! REQUIRED_ENV.each { |e| raise "Missing `ENV['#{e}']`" unless ENV[e].present? } end def self.environments Dir[Rails.root.join('config', 'environments', '*.rb')].map { |f| File.basename(f, '.*').to_sym } end def self.local_environments %i[test development] end def self.remote_environments environments - local_environments end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deliv-deploy-0.0.1 | lib/deliv/deploy.rb |