Sha256: a206bf7f4a693ef8f6bb14890a33684071bfac7f19638b3c0bea314af8f80cea

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

module FeaturesHelper
  def login
    set_target
    logout

    cmd = "yes 1 | #{cf_bin} login #{username} --password #{password} -o #{organization}"
    cmd += " -s #{space}" if respond_to?(:space)
    BlueShell::Runner.run(cmd) do |runner|
      runner.wait_for_exit 30
    end
  end

  def logout
    BlueShell::Runner.run("#{cf_bin} logout")
  end

  def set_target
    BlueShell::Runner.run("#{cf_bin} target #{target}")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cf-0.6.1.rc8 spec/support/features_helper.rb
cf-0.6.1.rc7 spec/support/features_helper.rb
cf-0.6.1.rc6 spec/support/features_helper.rb