Sha256: 2719fd19bd41148637d06d3c1c73b60a767be9ce3fb5338fb072b168dcf635ea
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
class ApigeeTool < ThorCli namespace 'apigeetool' default_task :listdeployments no_commands do def load_config @username = ApigeeCli.configuration.username @password = ApigeeCli.configuration.password @org = ApigeeCli.configuration.org @env = environment end end desc 'deploy', 'Deploy a proxy' def deploy(*args) load_config say `apigeetool deployproxy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'nodedeploy', 'Deploy a node app' def nodedeploy(*args) load_config say `apigeetool deploynodeapp -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'undeploy', 'Undeploy a proxy or node app' def undeploy(*args) load_config say `apigeetool undeploy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'listdeployments', 'List all the deployments for a given environment' def listdeployments(*args) load_config say `apigeetool listdeployments -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'fetchproxy', 'Download a proxy as a zip file' def fetchproxy(*args) load_config say `apigeetool fetchproxy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'delete', 'Delete a proxy or node app' def deleteproxy(*args) load_config say `apigeetool delete -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end desc 'getlogs', 'Retrieve the last set of logs from a Node app' def getlogs(*args) load_config say `apigeetool getlogs -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}` end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apigee_cli-0.0.3 | lib/apigee_cli/cli/apigee_tool.rb |
apigee_cli-0.0.2 | lib/apigee_cli/cli/apigee_tool.rb |
apigee_cli-0.0.1 | lib/apigee_cli/cli/apigee_tool.rb |