Sha256: d7c1a73a902bb1bc82fc39c808378c9f175fa2db06a6db453e3dcd5f684cf569

Contents?: true

Size: 384 Bytes

Versions: 10

Compression:

Stored size: 384 Bytes

Contents

desc 'Clears out the local repository of retrieved files'
command :'clean' do |c|
  c.default_value 'resources'
  c.arg_name 'dir'
  c.flag [:resources_dir]

  c.action do |global_options, options, args|
    puts "Reading state information... Done"
    resources_dir = File.join(File.dirname(global_options[:config]), options[:resources_dir])

    remove_dir(resources_dir)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zci-0.11.0 lib/zci/commands/05_clean.rb
zci-0.10.1 lib/zci/commands/05_clean.rb
zci-0.10.0 lib/zci/commands/05_clean.rb
zci-0.9.0 lib/zci/commands/05_clean.rb
zci-0.8.0 lib/zci/commands/05_clean.rb
zci-0.7.2 lib/zci/commands/05_clean.rb
zci-0.7.1 lib/zci/commands/05_clean.rb
zci-0.7.0 lib/zci/commands/05_clean.rb
zci-0.6.1 lib/zci/commands/05_clean.rb
zci-0.6.0 lib/zci/commands/05_clean.rb