cloud.rb 494 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env ruby
  2. require 'thor'
  3. require_relative 'lib/gce_command'
  4. # Don't buffer output to the client
  5. STDOUT.sync = true
  6. STDERR.sync = true
  7. module OpenShift
  8. module Ops
  9. class CloudCommand < Thor
  10. desc 'gce', 'Manages Google Compute Engine assets'
  11. subcommand "gce", GceCommand
  12. end
  13. end
  14. end
  15. if __FILE__ == $0
  16. SCRIPT_DIR = File.expand_path(File.dirname(__FILE__))
  17. Dir.chdir(SCRIPT_DIR) do
  18. # Kick off thor
  19. OpenShift::Ops::CloudCommand.start(ARGV)
  20. end
  21. end