Class: Jekyll::Commands::PublishArgParser
Instance Attribute Summary
#args, #config, #options
Instance Method Summary
collapse
#initialize, #path, #source, #validate!
Instance Method Details
#date ⇒ Object
35
36
37
|
# File 'lib/jekyll/commands/publish.rb', line 35
def date
options["date"].nil? ? Date.today : Date.parse(options["date"])
end
|
#name ⇒ Object
39
40
41
|
# File 'lib/jekyll/commands/publish.rb', line 39
def name
File.basename path
end
|
#resource_type ⇒ Object
31
32
33
|
# File 'lib/jekyll/commands/publish.rb', line 31
def resource_type
"draft"
end
|