lib/choria/colt/cli.rb in choria-colt-0.6.0 vs lib/choria/colt/cli.rb in choria-colt-0.7.0

- old
+ new

@@ -66,13 +66,12 @@ aliases: ['-E'], desc: 'Puppet environment to grab tasks from', default: 'production' def show(*tasks_names) environment = options['environment'] - cache_directory = File.expand_path('.cache/colt/tasks') - FileUtils.mkdir_p cache_directory - cache = Cache.new(path: File.join(cache_directory, "#{environment}.yaml")) + require 'active_support/cache/file_store' + cache = ActiveSupport::Cache::FileStore.new File.expand_path('~/.cache/colt/tasks') tasks = colt.tasks(environment: environment, cache: cache) if tasks_names.empty? show_tasks_summary(tasks) else