bin/nailed in nailed-0.0.6 vs bin/nailed in nailed-0.0.7
- old
+ new
@@ -10,11 +10,11 @@
opts = Trollop::options do
opt :migrate, "Set database to pristine state", :short => 'm'
opt :upgrade, "Upgrade database", :short => 'u'
opt :bugzilla, "Refresh bugzilla database records", :short => 'b'
opt :github, "Refresh github database records", :short => 'g'
- opt :l3, "Refresh l3 trend database records", :short => 'l'
+ opt :list, "List github repositories within organization", :type => :string, :short => 'l'
opt :server, "Start a dashboard webinterface", :short => 's'
end
abort("try nailed -h") if opts.all?{|k,v| v.is_a?(FalseClass)}
@@ -71,18 +71,22 @@
end
when :bugzilla
if val
bugzilla_client.get_bugs
bugzilla_client.write_bug_trends
+ bugzilla_client.write_l3_trends
end
when :github
if val
github_client.update_pull_states
github_client.get_open_pulls
end
- when :l3
+ when :list
if val
- bugzilla_client.write_l3_trends
+ begin
+ Nailed.list_org_repos(github_client.client, val)
+ rescue
+ end
end
end
end