lib/meroku.rb in meroku-0.1.36 vs lib/meroku.rb in meroku-2.0.0
- old
+ new
@@ -1,21 +1,30 @@
require "meroku/version"
-require "meroku/util"
-require "meroku/sanitychecks"
-require "meroku/cli"
-require "meroku/cli/server"
-require "meroku/cli/keys"
-require "meroku/cli/domains"
-require "meroku/cli/remote"
-require "meroku/cli/certs"
-require "meroku/cli/config"
-require "meroku/cli/cli"
+require "meroku/infrastructure"
+require 'aws-sdk-ec2'
+require 'dotenv/load'
-require "meroku/error"
-require "meroku/core_ext"
-require 'aws-sdk'
-
module Meroku
- PRODUCTION_IP = "34.239.241.218"
+ def self.cli_start(*args)
+ case args.join(" ")
+ when "infrastructure spawn"
+ Meroku::Infrastructure.spawn
+ when "infrastructure despawn"
+ Meroku::Infrastructure.despawn
+ else
+ print_help
+ end
+ end
+ def self.print_help
+ puts <<~HEREDOC
+ Usage: meroku command subcommand
+
+ Examples
+
+ meroku infrastrucuture spawn # Spawns server
+
+ HEREDOC
+ end
+
end