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-2021.0.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2021.0.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.25 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.24 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.22 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.21 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.20 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.19 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.18 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.17 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.16 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.15 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.14 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.13 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.12 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.11 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.10 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.9 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.8 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2020.0.7 lib/j1_app/j1_auth_manager/commands.rb