Skip to content

Commit

Permalink
Merge pull request #5 from sorah/osci
Browse files Browse the repository at this point in the history
eventapp: Use array to pass arguments
  • Loading branch information
sorah committed Oct 30, 2015
2 parents ba895cb + 3250270 commit 150e3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventapp/lib/gcloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.valid_ip_address(project_id, zone_name, instance_name)
end

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|
io.read()
end
serverInfoList = JSON.parse(jsonText) rescue nil
Expand Down

0 comments on commit 150e3e6

Please sign in to comment.