Sha256: 251bddb082737dc52c72595d1772e8b1931587ad4597fa088633ef77876851a1

Contents?: true

Size: 422 Bytes

Versions: 184

Compression:

Stored size: 422 Bytes

Contents

module J1App
  class Commands

    FILES = %w(Rakefile config.ru .gitignore).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

184 entries across 184 versions & 1 rubygems

Version Path
j1-template-2023.2.6 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.5 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.4 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.3 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.2 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.2.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.1.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.17 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.16 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.15 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.14 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.13 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.12 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.11 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.10 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.9 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.8 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.7 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.0.6 lib/j1_app/j1_auth_manager/commands.rb