Skip to content

Commit

Permalink
remove json export
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed May 7, 2011
1 parent 95115f4 commit 564aa74
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 43 deletions.
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ GEM
diff-lcs (1.1.2)
fakefs (0.2.1)
hpricot (0.8.2)
json (1.5.1)
mime-types (1.16)
mustache (0.11.2)
parka (0.6.2)
Expand Down Expand Up @@ -47,7 +46,6 @@ PLATFORMS

DEPENDENCIES
fakefs (~> 0.2.1)
json (~> 1.5.1)
foreman!
parka
rake
Expand Down
1 change: 0 additions & 1 deletion foreman.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Gem::Specification.new do |gem|
gem.files = Dir["**/*"].select { |d| d =~ %r{^(README|bin/|data/|ext/|lib/|spec/|test/)} }
gem.files << "man/foreman.1"

gem.add_dependency 'json', '~> 1.5.1'
gem.add_dependency 'term-ansicolor', '~> 1.0.5'
gem.add_dependency 'thor', '>= 0.13.6'

Expand Down
1 change: 0 additions & 1 deletion lib/foreman/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def export(format, location=nil)
check_procfile!

formatter = case format
when "json" then Foreman::Export::JSON
when "inittab" then Foreman::Export::Inittab
when "upstart" then Foreman::Export::Upstart
else error "Unknown export format: #{format}."
Expand Down
1 change: 0 additions & 1 deletion lib/foreman/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ module Foreman::Export
class Exception < ::Exception; end
end

require "foreman/export/json"
require "foreman/export/inittab"
require "foreman/export/upstart"
13 changes: 0 additions & 13 deletions lib/foreman/export/json.rb

This file was deleted.

18 changes: 1 addition & 17 deletions man/foreman.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "FOREMAN" "1" "March 2011" "Foreman 0.12.0.pre1" "Foreman Manual"
.TH "FOREMAN" "1" "May 2011" "Foreman 0.12.0" "Foreman Manual"
.
.SH "NAME"
\fBforeman\fR \- manage Procfile\-based applications
Expand Down Expand Up @@ -75,29 +75,13 @@ Specify an alternate location for the application\'s Procfile\. This file\'s con
foreman currently supports the following output formats:
.
.IP "\(bu" 4
json
.
.IP "\(bu" 4
inittab
.
.IP "\(bu" 4
upstart
.
.IP "" 0
.
.SH "JSON EXPORT"
Will export your processes as JSON:
.
.IP "" 4
.
.nf

{ "web": { "command": "bundle exec thin start" } }
.
.fi
.
.IP "" 0
.
.SH "INITTAB EXPORT"
Will export a chunk of inittab\-compatible configuration:
.
Expand Down
8 changes: 0 additions & 8 deletions man/foreman.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,10 @@ These options control all modes of foreman's operation.

foreman currently supports the following output formats:

* json

* inittab

* upstart

## JSON EXPORT

Will export your processes as JSON:

{ "web": { "command": "bundle exec thin start" } }

## INITTAB EXPORT

Will export a chunk of inittab-compatible configuration:
Expand Down

0 comments on commit 564aa74

Please sign in to comment.