Sha256: 42973d7f789723304cd9e33b43d9f25b6a76b4c2fefc37bcb3710d35005f8174

Contents?: true

Size: 373 Bytes

Versions: 11

Compression:

Stored size: 373 Bytes

Contents

class Puppeteer::Env
  # indicates whether DEBUG=1 is specified.
  #
  # @return [Boolean]
  def debug?
    ['1', 'true'].include?(ENV['DEBUG'].to_s)
  end

  def ci?
    ['1', 'true'].include?(ENV['CI'].to_s)
  end

  # check if running on macOS
  def darwin?
    RUBY_PLATFORM.include?('darwin')
  end
end

class Puppeteer
  def self.env
    Puppeteer::Env.new
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
puppeteer-ruby-0.30.0 lib/puppeteer/env.rb
puppeteer-ruby-0.29.0 lib/puppeteer/env.rb
puppeteer-ruby-0.28.1 lib/puppeteer/env.rb
puppeteer-ruby-0.0.27 lib/puppeteer/env.rb
puppeteer-ruby-0.0.26 lib/puppeteer/env.rb
puppeteer-ruby-0.0.25 lib/puppeteer/env.rb
puppeteer-ruby-0.0.23 lib/puppeteer/env.rb
puppeteer-ruby-0.0.22 lib/puppeteer/env.rb
puppeteer-ruby-0.0.21 lib/puppeteer/env.rb
puppeteer-ruby-0.0.20 lib/puppeteer/env.rb
puppeteer-ruby-0.0.19 lib/puppeteer/env.rb