lib/nanoc/cli/commands/create-site.rb in nanoc-3.7.3 vs lib/nanoc/cli/commands/create-site.rb in nanoc-3.7.4

- old
+ new

@@ -1,10 +1,10 @@ # encoding: utf-8 -usage 'create-site [options] path' -aliases :create_site, :cs -summary 'create a site' +usage 'create-site [options] path' +aliases :create_site, :cs +summary 'create a site' description " Create a new site at the given path. The site will use the `filesystem_unified` data source by default, but this can be changed using the `--datasource` commandline option. " required :d, :datasource, 'specify the data source for the new site' @@ -13,11 +13,11 @@ class CreateSite < ::Nanoc::CLI::CommandRunner class << self - protected + protected # Converts the given array to YAML format def array_to_yaml(array) '[ ' + array.map { |s| "'" + s + "'" }.join(', ') + ' ]' end @@ -327,14 +327,14 @@ end puts "Created a blank nanoc site at '#{path}'. Enjoy!" end - protected + protected # Creates a configuration file and a output directory for this site, as # well as a rakefile that loads the standard nanoc tasks. - def site_create_minimal(data_source) + def site_create_minimal(_data_source) # Create output FileUtils.mkdir_p('output') # Create config File.open('nanoc.yaml', 'w') { |io| io.write(DEFAULT_CONFIG) }