Skip to content
Browse files

Merge pull request #5 from sorah/osci

eventapp: Use array to pass arguments
  • Loading branch information...
sorah committed Oct 30, 2015
2 parents ba895cb + 3250270 commit 150e3e6d851acb31a0b15ce93380a7dab14203fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 eventapp/lib/gcloud.rb
@@ -13,7 +13,7 @@ def self.valid_ip_address(project_id, zone_name, instance_name)

def self.server_info(project_id, zone_name, instance_name)
jsonText = IO.popen("gcloud compute --project #{project_id} instances list --zones #{zone_name} --format json") do |io|
jsonText = IO.popen([*%w(gcloud compute --project), project_id, %w(instances list --zones), zone_name, %w(--format json)]) do |io|
serverInfoList = JSON.parse(jsonText) rescue nil

0 comments on commit 150e3e6

Please sign in to comment.
You can’t perform that action at this time.