Sha256: 4832351cfa41be6047acc56e76ee1b3712ee881eb03171b81e576c49f74d136e

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'shotgrid_api_ruby'

require 'dotenv/load'

if ENV['SHOTGUN_SITE_NAME'] && ENV['SCRIPT_NAME'] && ENV['SCRIPT_KEY']
  $cl =
    ShotgridApiRuby.new(
      shotgun_site: ENV['SHOTGUN_SITE_NAME'],
      auth: {
        client_id: ENV['SCRIPT_NAME'],
        client_secret: ENV['SCRIPT_KEY'],
      },
    )
end
if ENV['SITE_NAME'] && ENV['SCRIPT_NAME'] && ENV['SCRIPT_KEY']
  $cl =
    ShotgridApiRuby.new(
      shotgrid_site: ENV['SITE_NAME'],
      auth: {
        client_id: ENV['SCRIPT_NAME'],
        client_secret: ENV['SCRIPT_KEY'],
      },
    )
end
if ENV['SITE_URL'] && ENV['SCRIPT_NAME'] && ENV['SCRIPT_KEY']
  $cl =
    ShotgridApiRuby.new(
      site_url: ENV['SITE_URL'],
      auth: {
        client_id: ENV['SCRIPT_NAME'],
        client_secret: ENV['SCRIPT_KEY'],
      },
    )
end

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

require 'pry'
Pry.start(__FILE__)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shotgrid_api_ruby-0.2.0.6 bin/console
shotgrid_api_ruby-0.2.0.5 bin/console
shotgrid_api_ruby-0.2.0.4 bin/console
shotgrid_api_ruby-0.2.0.1 bin/console
shotgrid_api_ruby-0.1.3.3 bin/console
shotgrid_api_ruby-0.1.3.2 bin/console
shotgrid_api_ruby-0.1.3.1 bin/console
shotgrid_api_ruby-0.1.3 bin/console
shotgrid_api_ruby-0.1.2 bin/console