Sha256: a51691263994126bed31c6747fc0c4349a824d6e808e7eea21834ae2d562d9ff

Contents?: true

Size: 757 Bytes

Versions: 20

Compression:

Stored size: 757 Bytes

Contents

# frozen_string_literal: true

# By specifying a directory path here, you are explicitly giving permission to the program
# to delete it if it believes it needs to be created (e.g., if the SHA has changed of the
# cached directory).
# @param parser [OptionParser object] The OptionParser argument
# @param options [Hash] Options hash being constructed; this is modified in this method.
OctocatalogDiff::Cli::Options::Option.newoption(:safe_to_delete_cached_master_dir) do
  has_weight 160

  def parse(parser, options)
    parser.on('--safe-to-delete-cached-master-dir PATH', 'OK to delete cached master directory at this path') do |path_in|
      path = File.absolute_path(path_in)
      options[:safe_to_delete_cached_master_dir] = path
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
octocatalog-diff-2.3.1 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-2.3.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-2.1.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-2.0.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.6.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.5.4 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.5.3 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.5.2 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.5.1 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.5.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.4.1 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.4.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.3.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.2.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.1.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.0.4 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.0.3 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.0.2 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.0.1 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb
octocatalog-diff-1.0.0 lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb