Sha256: 076d8e17fd6abbef1d9cd047e3b6dfbc8a3246eb1a9e6ef547f81ced0f6a1969

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

require 'rubygems'
require 'rest_connection'
require 'spec'
require 'ruby-debug'

describe McServer, "server api object exercise" do
  before(:all) do
    @mcserver_v5 = McServer.find("/api/clouds/850/instances/AA5AOKVUOJPC9") # a v5 server
  end

  it "should run a recipe on a v5 server" do
    this_template = ServerTemplate.find(@mcserver_v5.server_template_href)
    run_first = this_template.executables.first
    audit = @mcserver_v5.run_executable(run_first)
    audit.wait_for_completed
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rest_connection-0.1.7 spec/mcserver_spec.rb
rest_connection-0.1.6 spec/mcserver_spec.rb
rest_connection-0.1.5 spec/mcserver_spec.rb
rest_connection-0.1.4 spec/mcserver_spec.rb
rest_connection-0.1.3 spec/mcserver_spec.rb
rest_connection-0.1.2 spec/mcserver_spec.rb
rest_connection-0.1.1 spec/mcserver_spec.rb
rest_connection-0.1.0 spec/mcserver_spec.rb