bamboo-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/bamboo.rb +4 -0
  2. data/lib/cli.rb +5 -0
  3. metadata +3 -3
@@ -44,4 +44,8 @@ class Bamboo
44
44
  def resume
45
45
  self.class.post('/rest/api/latest/server/resume')
46
46
  end
47
+
48
+ def clone(key, newkey)
49
+ self.class.put('/rest/api/latest/clone/' + key + ':' + newkey)
50
+ end
47
51
  end
data/lib/cli.rb CHANGED
@@ -51,4 +51,9 @@ class Cli < Thor
51
51
  def resume
52
52
  OUT.out BAMBOO.resume
53
53
  end
54
+
55
+ desc "clone KEY NEWKEY", "Clones a plan configuration"
56
+ def clone(key, newkey)
57
+ OUT.out BAMBOO.clone(key, newkey)
58
+ end
54
59
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bamboo-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Dumay