Class: ApigeeTool

Inherits:
ThorCli show all
Defined in:
lib/apigee_cli/cli/apigee_tool.rb

Instance Method Summary collapse

Instance Method Details

#deleteproxy(*args) ⇒ Object



45
46
47
48
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 45

def deleteproxy(*args)
  load_config
  say `apigeetool delete -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#deploy(*args) ⇒ Object



15
16
17
18
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 15

def deploy(*args)
  load_config
  say `apigeetool deployproxy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#fetchproxy(*args) ⇒ Object



39
40
41
42
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 39

def fetchproxy(*args)
  load_config
  say `apigeetool fetchproxy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#getlogs(*args) ⇒ Object



51
52
53
54
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 51

def getlogs(*args)
  load_config
  say `apigeetool getlogs -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#listdeployments(*args) ⇒ Object



33
34
35
36
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 33

def listdeployments(*args)
  load_config
  say `apigeetool listdeployments -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#nodedeploy(*args) ⇒ Object



21
22
23
24
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 21

def nodedeploy(*args)
  load_config
  say `apigeetool deploynodeapp -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end

#undeploy(*args) ⇒ Object



27
28
29
30
# File 'lib/apigee_cli/cli/apigee_tool.rb', line 27

def undeploy(*args)
  load_config
  say `apigeetool undeploy -u #{@username} -p #{@password} -o #{@org} -e #{@env} #{args.join(' ')}`
end