Sha256: bf1808dbddb6cd3b7a1f826096b077c4899ab2526d8b8699415e6b56c7dae98a

Contents?: true

Size: 591 Bytes

Versions: 7

Compression:

Stored size: 591 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..')

require 'connfu'

require 'examples/provisioning/setup'

ARGV.length < 1 and
    (
    puts "Please include as argument the api_key"
    exit
    )

api_key = ARGV.shift

application = Connfu::Provisioning::Application.new(api_key, CONNFU_ENDPOINT)

begin

  [:name, :description, :stream_name].each{|var|
    puts "#{var} => #{application.send(var)}"
  }

rescue Exception => ex
  puts "There was an error:"
  puts "Exception message: #{ex.message}"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
connfu-client-0.1.6 examples/provisioning/app/get.rb
connfu-client-0.1.5 examples/provisioning/app/get.rb
connfu-client-0.1.4 examples/provisioning/app/get.rb
connfu-client-0.1.3 examples/provisioning/app/get.rb
connfu-client-0.1.2 examples/provisioning/app/get.rb
connfu-client-0.1.1 examples/provisioning/app/get.rb
connfu-client-0.1 examples/provisioning/app/get.rb