Sha256: f335995b7e430f904f798ad67fa89cd031b5a85ce820be023d94f977317e7c0e

Contents?: true

Size: 579 Bytes

Versions: 128

Compression:

Stored size: 579 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec

task :environment do
  require 'dotenv'
  Dotenv.load

  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
  require 'rock_rms'
end

desc 'Launch a pry shell with libraries loaded'
task pry: :environment do
  if ENV['ROCK_USERNAME']
    @client = RockRMS::Client.new(
      url: ENV['ROCK_API_URL'],
      username: ENV['ROCK_USERNAME'],
      password: ENV['ROCK_PASSWORD'],
      logger: !!ENV['CLIENT_LOGGER']
    )
  end

  require 'pry'
  Pry.start
end

Version data entries

128 entries across 128 versions & 1 rubygems

Version Path
rock_rms-9.15.0 Rakefile
rock_rms-9.14.0 Rakefile
rock_rms-9.13.0 Rakefile
rock_rms-9.12.0 Rakefile
rock_rms-9.11.0 Rakefile
rock_rms-9.10.0 Rakefile
rock_rms-9.9.0 Rakefile
rock_rms-9.8.0 Rakefile
rock_rms-9.7.0 Rakefile
rock_rms-9.6.0 Rakefile
rock_rms-9.5.0 Rakefile
rock_rms-9.4.0 Rakefile
rock_rms-9.3.0 Rakefile
rock_rms-9.2.0 Rakefile
rock_rms-9.1.0 Rakefile
rock_rms-9.0.0 Rakefile
rock_rms-8.23.0 Rakefile
rock_rms-8.22.0 Rakefile
rock_rms-8.21.0 Rakefile
rock_rms-8.20.0 Rakefile