class Envirobly::Cli::Main
def abort_if_aws_cli_is_missing
def abort_if_aws_cli_is_missing `which aws` unless $?.success? $stderr.puts "AWS CLI is missing. Please install it first: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html" exit 1 end end
def deploy(environment)
def deploy(environment) abort_if_aws_cli_is_missing Envirobly::Deployment.new environment, options end
def set_access_token
def set_access_token token = ask("Access Token:", echo: false).strip if token == "" $stderr.puts "Token can't be empty." exit 1 end Envirobly::AccessToken.new(token).save end
def version
def version puts Envirobly::VERSION end