Sha256: 302bbc060f1707e5ce0b12ed23859da475f3f2949861907ec7e51ac4e6f8f0b2

Contents?: true

Size: 416 Bytes

Versions: 7

Compression:

Stored size: 416 Bytes

Contents

require 'rubygems'
require 'rest_connection'
require 'trollop'

opts = Trollop::options do
  opt :deployment, "deployment nickname", :type => :string, :required => true
  opt :template, "server template href to set for all servers", :type => :string, :required => true
end

deployment = Deployment.find_by_nickname_speed(opts[:deployment]).first

deployment.servers.each do |s|
  s.set_template(opts[:template])
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest_connection-0.0.7 examples/set_deployment_template_href.rb
rest_connection-0.0.6 examples/set_deployment_template_href.rb
rest_connection-0.0.5 examples/set_deployment_template_href.rb
rest_connection-0.0.4 examples/set_deployment_template_href.rb
rest_connection-0.0.3 examples/set_deployment_template_href.rb
rest_connection-0.0.2 examples/set_deployment_template_href.rb
rest_connection-0.0.1 examples/set_deployment_template_href.rb