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