Sha256: c50a460df606aba44d411752d1e641e83445d2bd0905ed569ce94a6aa9908905

Contents?: true

Size: 484 Bytes

Versions: 10

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true
#
require "cypress_rails/version"
require "cypress_rails/railtie"
require "cypress_rails/configuration"

module CypressRails
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end


  def scripts(name)
    path = Pathname.new(configuration.scripts_path).join("#{name}.rb")
    instance_eval File.read(
      path
    )
  end
  module_function :scripts
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cypress_rails-0.9.3 lib/cypress_rails.rb
cypress_rails-0.9.2 lib/cypress_rails.rb
cypress_rails-0.9.1 lib/cypress_rails.rb
cypress_rails-0.9.0 lib/cypress_rails.rb
cypress_rails-0.8.0 lib/cypress_rails.rb
cypress_rails-0.7.0 lib/cypress_rails.rb
cypress_rails-0.6.0 lib/cypress_rails.rb
cypress_rails-0.5.0 lib/cypress_rails.rb
cypress_rails-0.4.2 lib/cypress_rails.rb
cypress_rails-0.4.1 lib/cypress_rails.rb