Class: Jekyll::Commands::PublishArgParser
Instance Attribute Summary
#args, #config, #options
Instance Method Summary
collapse
#path, #validate!
#force?, #initialize, #layout, #source, #timestamp_format, #title, #type, #validate!
Instance Method Details
#date ⇒ Object
43
44
45
|
# File 'lib/jekyll/commands/publish.rb', line 43
def date
@date ||= options["date"] ? Date.parse(options["date"]) : Time.now
end
|
#name ⇒ Object
47
48
49
|
# File 'lib/jekyll/commands/publish.rb', line 47
def name
File.basename path
end
|
#resource_type ⇒ Object
39
40
41
|
# File 'lib/jekyll/commands/publish.rb', line 39
def resource_type
"draft"
end
|