Sha256: 1e9216c2d5ded576de6b9a29045f2042fc06ac252fa6a7e034917fbb09cd81bc
Contents?: true
Size: 870 Bytes
Versions: 1
Compression:
Stored size: 870 Bytes
Contents
require 'aruba/api' World(Aruba::Api) When /^I call the nexus "(.*?)" command$/ do |command| step "I run `nexus-cli #{command} --overrides=#{get_overrides}`" end When /^I push an artifact with the GAV of "(.*)"$/ do |gav| groupId, artifactId, version, extension = gav.split(":") file = File.new(File.join(temp_dir, "#{artifactId}-#{version}.#{extension}"), 'w') file.puts "some data" file.close step "I run `nexus-cli push #{gav} #{file.path}`" end When /^I pull an artifact with the GAV of "(.*?)" to a temp directory$/ do |gav| step "I run `nexus-cli pull #{gav} --destination #{temp_dir}`" end Then /^I should have a copy of the "(.*?)" artifact in a temp directory$/ do |fileName| File.exists?(File.join(temp_dir, fileName)).should == true end When /^I delete an artifact with the GAV of "(.*)"$/ do |gav| nexus_remote.delete_artifact(gav) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nexus_cli-0.3.0 | features/step_definitions/cli_steps.rb |