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-2024.3.16 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.3.15 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.3.14 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.3.13 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.3.12 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.2.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.2.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.5 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.4 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.3 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.2 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.1.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.0.3 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.0.2 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.0.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2024.0.0 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.10.2 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.10.1 lib/j1_app/j1_auth_manager/commands.rb
j1-template-2023.10.0 lib/j1_app/j1_auth_manager/commands.rb