bin/s3_website in s3_website-1.1.2 vs bin/s3_website in s3_website-1.2.0

- old
+ new

@@ -34,17 +34,23 @@ :headless, :type => :boolean, :desc => 'When headless, s3_website will not require human interaction at any point' ) + option( + :config_dir, + :type => :string, + :default => Dir.pwd, + :desc => "The directory where your config file is. When not defined, s3_website will look in the current working directory." + ) desc 'push', 'Push local files with the S3 website' long_desc <<-LONGDESC `s3_website push` will upload new and changes files to S3. It will also delete from S3 the files that you no longer have locally. LONGDESC def push site_path = S3Website::Paths.infer_site_path options[:site] - S3Website::Tasks.push(Dir.pwd, site_path, options[:headless]) + S3Website::Tasks.push(options[:config_dir], site_path, options[:headless]) end desc 'cfg SUBCOMMAND ...ARGS', 'Operate on the config file' subcommand 'cfg', Cfg end