Class: Egads::Trim

Inherits:
Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/egads/command/trim.rb

Instance Method Summary collapse

Methods inherited from Group

exit_on_failure?

Instance Method Details

#trim(n = 4) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/egads/command/trim.rb', line 7

def trim(n=4)
  # Trim old releases
  inside RemoteConfig.extract_to do
    trim_glob('*', n)
  end

  # Trim seeds
  inside RemoteConfig.seed_dir do
    trim_glob('*.tar.gz', n)
  end
end