Sha256: 33501acfe5dc3f9a1060b3e1bb124390abd05ec3a1ddfc821badda93087f846b

Contents?: true

Size: 1.35 KB

Versions: 18

Compression:

Stored size: 1.35 KB

Contents

Given /I have a Berksfile pointing at the community API endpoint with:/ do |content|
  steps %Q{
    Given a file named "Berksfile" with:
      """
      source '#{Berkshelf::Berksfile::DEFAULT_API_URL}'

      #{content}
      """
  }
end

Given /^I have a Berksfile pointing at the local Berkshelf API$/ do
  steps %Q{
    Given I have a Berksfile pointing at the local Berkshelf API with:
      """
      """
  }
end

Given /^I have a Berksfile pointing at the local Berkshelf API with:$/ do |content|
  steps %Q{
    Given I have a Berksfile at "." pointing at the local Berkshelf API with:
      """
      #{content}
      """
  }
end

Given /^I have a Berksfile at "(.+)" pointing at the local Berkshelf API with:$/ do |path, content|
  steps %Q{
    Given a directory named "#{path}"
    And a file named "#{path}/Berksfile" with:
      """
      source 'http://127.0.0.1:#{BERKS_API_PORT}'

      #{content}
      """
  }
end

Given /I have a Berksfile pointing at an( authenticated)? Artifactory server with:/ do |authenticated, content|
  if ENV["TEST_BERKSHELF_ARTIFACTORY"]
    steps %Q{
      Given a file named "Berksfile" with:
        """
        source artifactory: '#{ENV['TEST_BERKSHELF_ARTIFACTORY']}'#{authenticated ? ", api_key: '#{ENV['TEST_BERKSHELF_ARTIFACTORY_API_KEY']}'" : ''}

        #{content}
        """
    }
  else
    skip_this_scenario
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/step_definitions/berksfile_steps.rb
berkshelf-6.3.4 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.6 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.5 features/step_definitions/berksfile_steps.rb
berkshelf-6.3.3 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.4 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.3 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.2 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.1 features/step_definitions/berksfile_steps.rb
berkshelf-7.0.0 features/step_definitions/berksfile_steps.rb
berkshelf-6.3.2 features/step_definitions/berksfile_steps.rb
berkshelf-6.3.1 features/step_definitions/berksfile_steps.rb
berkshelf-6.3.0 features/step_definitions/berksfile_steps.rb
berkshelf-6.2.2 features/step_definitions/berksfile_steps.rb
berkshelf-6.2.1 features/step_definitions/berksfile_steps.rb
berkshelf-6.2.0 features/step_definitions/berksfile_steps.rb
berkshelf-6.1.1 features/step_definitions/berksfile_steps.rb
berkshelf-6.1.0 features/step_definitions/berksfile_steps.rb