lib/jazzy/config.rb in jazzy-0.0.8 vs lib/jazzy/config.rb in jazzy-0.0.9
- old
+ new
@@ -1,33 +1,29 @@
require 'optparse'
module Jazzy
class Config
- attr_accessor :input
attr_accessor :output
attr_accessor :xcodebuild_arguments
attr_accessor :author_name
attr_accessor :module_name
attr_accessor :github_url
attr_accessor :github_file_prefix
attr_accessor :author_url
attr_accessor :dash_url
- attr_accessor :excludes
attr_accessor :sourcekitten_sourcefile
attr_accessor :clean
def initialize
- self.input = File.expand_path('.')
self.output = File.expand_path('docs')
self.xcodebuild_arguments = []
self.author_name = ''
self.module_name = ''
- self.github_url = ''
+ self.github_url = nil
self.github_file_prefix = nil
self.author_url = ''
- self.dash_url = ''
- self.excludes = []
+ self.dash_url = nil
self.sourcekitten_sourcefile = nil
self.clean = false
end
def self.parse!
@@ -37,13 +33,9 @@
opt.separator ''
opt.separator 'Options'
opt.on('-o', '--output FOLDER', 'Folder to output the HTML docs to') do |output|
config.output = File.expand_path(output)
- end
-
- opt.on('-e', '--exclude filepath1,filepath2,…filepathN', Array, 'Exclude specific files') do |e|
- config.excludes = e
end
opt.on('-c', '--[no-]clean',
'Delete contents of output directory before running.',
'WARNING: If --output is set to ~/Desktop, this will delete the ~/Desktop directory.') do |clean|