Sha256: ec6e7687dbdf6527fa97d417994f02c5563e8874ac375eb7088fe613a15ddc3b

Contents?: true

Size: 429 Bytes

Versions: 62

Compression:

Stored size: 429 Bytes

Contents

module J1App
  class Commands

    FILES = %w(Rakefile config.ru .gitignore dotenv).freeze
    VARS  = %w(client_id client_secret team_id org_name).freeze

    def self.execute_command(*args)
      output, status = Open3.capture2e(*args)
      raise "Command `#{args.join(" ")}` failed: #{output}" unless status.exitstatus.zero?
      output
    end

    def self.env_var_set?(var)
      !ENV[var].to_s.blank?
    end

  end
end

Version data entries

62 entries across 62 versions & 3 rubygems

Version Path
j1_template_mde-2018.4.11 lib/j1_app/j1_auth_manager/commands.rb
j1_template_mde-2018.4.10 lib/j1_app/j1_auth_manager/commands.rb