tracker_packer 0.0.1
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.
- data/bin/tp +33 -0
- metadata +83 -0
data/bin/tp
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'pivotal-tracker'
|
|
4
|
+
require 'optparse'
|
|
5
|
+
|
|
6
|
+
options = {}
|
|
7
|
+
OptionParser.new do |opts|
|
|
8
|
+
opts.program_name = 'tp'
|
|
9
|
+
opts.banner = "Usage: tp [options]"
|
|
10
|
+
opts.on("--token TOKEN",
|
|
11
|
+
"Pivotal Tracker token") do |token|
|
|
12
|
+
options[:token] = token
|
|
13
|
+
end
|
|
14
|
+
opts.on("--project PROJECT_ID",
|
|
15
|
+
"Pivotal Tracker project id") do |project|
|
|
16
|
+
options[:project] = project
|
|
17
|
+
end
|
|
18
|
+
opts.on("--file TEMPLATE_FILE",
|
|
19
|
+
"YAML template file containing stories") do |file|
|
|
20
|
+
options[:file] = file
|
|
21
|
+
end
|
|
22
|
+
end.parse(ARGV)
|
|
23
|
+
|
|
24
|
+
PivotalTracker::Client.token = options[:token]
|
|
25
|
+
|
|
26
|
+
templates = YAML::load(File.read(options[:file]))
|
|
27
|
+
|
|
28
|
+
project = PivotalTracker::Project.find(options[:project])
|
|
29
|
+
puts "Packing..."
|
|
30
|
+
|
|
31
|
+
ids = templates.map {|story| project.stories.create(story).id }
|
|
32
|
+
puts "Stories created: "
|
|
33
|
+
puts ids
|
metadata
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tracker_packer
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 29
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 0
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.0.1
|
|
11
|
+
platform: ruby
|
|
12
|
+
authors:
|
|
13
|
+
- Kevin R. Barnes
|
|
14
|
+
autorequire:
|
|
15
|
+
bindir: bin
|
|
16
|
+
cert_chain: []
|
|
17
|
+
|
|
18
|
+
date: 2012-02-12 00:00:00 -06:00
|
|
19
|
+
default_executable:
|
|
20
|
+
dependencies:
|
|
21
|
+
- !ruby/object:Gem::Dependency
|
|
22
|
+
name: pivotal-tracker
|
|
23
|
+
prerelease: false
|
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 13
|
|
30
|
+
segments:
|
|
31
|
+
- 0
|
|
32
|
+
- 4
|
|
33
|
+
- 1
|
|
34
|
+
version: 0.4.1
|
|
35
|
+
type: :runtime
|
|
36
|
+
version_requirements: *id001
|
|
37
|
+
description: " `tp` is a dead-simple command-line utility for importing story templates into Pivotal Tracker.\n"
|
|
38
|
+
email: vinbarnes@gmail.com
|
|
39
|
+
executables:
|
|
40
|
+
- tp
|
|
41
|
+
extensions: []
|
|
42
|
+
|
|
43
|
+
extra_rdoc_files: []
|
|
44
|
+
|
|
45
|
+
files:
|
|
46
|
+
- bin/tp
|
|
47
|
+
has_rdoc: true
|
|
48
|
+
homepage: https://github.com/vinbarnes/tracker_packer
|
|
49
|
+
licenses: []
|
|
50
|
+
|
|
51
|
+
post_install_message:
|
|
52
|
+
rdoc_options:
|
|
53
|
+
- --exclude
|
|
54
|
+
- lib
|
|
55
|
+
require_paths:
|
|
56
|
+
- lib
|
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
hash: 3
|
|
63
|
+
segments:
|
|
64
|
+
- 0
|
|
65
|
+
version: "0"
|
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
|
+
none: false
|
|
68
|
+
requirements:
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
hash: 3
|
|
72
|
+
segments:
|
|
73
|
+
- 0
|
|
74
|
+
version: "0"
|
|
75
|
+
requirements: []
|
|
76
|
+
|
|
77
|
+
rubyforge_project:
|
|
78
|
+
rubygems_version: 1.3.7
|
|
79
|
+
signing_key:
|
|
80
|
+
specification_version: 3
|
|
81
|
+
summary: Import story templates into Pivotal Tracker
|
|
82
|
+
test_files: []
|
|
83
|
+
|