bin/cfn-cmd in cloudformation-ruby-dsl-0.4.1 vs bin/cfn-cmd in cloudformation-ruby-dsl-0.4.2
- old
+ new
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
-# This script proxies the commands
+# This script proxies the commands to service like cfn-cmd does, but in ruby so that gemstubs work
vendor=File.expand_path('../../vendor/AWSCloudFormation-1.0.12',__FILE__)
-exec "SERVICE_HOME=#{vendor} #{vendor}/bin/service \"#{ARGV.join('" "')}\""
+command=File.basename(__FILE__)
+
+exec "AWS_CLOUDFORMATION_HOME=#{vendor} SERVICE_HOME=#{vendor} #{vendor}/bin/#{command} \"#{ARGV.join('" "')}\""