module RightApiHelper

This contains a bunch or random helper shims Probably should be broken out into separate classes

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Basic helper gem for provisioning IaaS servers using the RightScale API.

It is intended to be used by ruby applications that need to launch servers.

## Usage

Example:

require "right_api_helper"

# initialize rightscale provisioner
@rightscale =
  RightApiHelper::Provisioner.new("my_user@somewhere.com",  // user
                                     "my_rightscale_password",   // password
                                     12345)            // rightscale account ID

# setup some inputs
server_inputs = {
     # open up port 8000
     "sys_firewall/rule/enable" => "text:enable",
     "sys_firewall/rule/port" => "text:8000",
     "sys_firewall/rule/ip_address" => "text:any",
     "sys_firewall/rule/protocol" => "text:tcp"
  }

# provision a RightScale managed server from a ServerTemplate
@rightscale.provision("My Cool Server",
                      "ServerTemplate for Linux (v13.5)", // name or ID
                      "AWS US-East",
                      "My Deployment",
                      server_inputs)

# wait for server to be ready
state = @rightscale.wait_for_operational

# Do stuff with your brand new server...

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: cary@rightscale.com Copyright 2014 RightScale, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Constants

VERSION