Sha256: 37ffec65016c63f165730ac5e26913b58f980fe969223be40558c9de1fc4171f

Contents?: true

Size: 380 Bytes

Versions: 7

Compression:

Stored size: 380 Bytes

Contents

module LeapCli
  module Commands

    desc 'Removes all files generated with the "compile" command.'
    command :clean do |c|
      c.action do |global_options,options,args|
        Dir.glob(path([:hiera, '*'])).each do |file|
          remove_file! file
        end
        remove_file! path(:authorized_keys)
        remove_file! path(:known_hosts)
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
leap_cli-1.7.4 lib/leap_cli/commands/clean.rb
leap_cli-1.7.3 lib/leap_cli/commands/clean.rb
leap_cli-1.6.2 lib/leap_cli/commands/clean.rb
leap_cli-1.5.6 lib/leap_cli/commands/clean.rb
leap_cli-1.5.1 lib/leap_cli/commands/clean.rb
leap_cli-1.5.0 lib/leap_cli/commands/clean.rb
leap_cli-1.2.5 lib/leap_cli/commands/clean.rb