Sha256: cd799e9f33bd9796eef368fceade30b1c59ee1dd2d0ba42e1871a22e45318dd3
Contents?: true
Size: 568 Bytes
Versions: 8
Compression:
Stored size: 568 Bytes
Contents
class Lbrt::CLI::Service < Thor include Lbrt::Utils::CLIHelper class_option :target desc 'apply FILE', 'Apply services' option :'dry-run', :type => :boolean, :default => false def apply(file) updated = client(Lbrt::Service).apply(file) unless updated Lbrt::Logger.instance.info('No change'.intense_blue) end end desc 'export [FILE]', 'Export services' def export(file = nil) dsl = client(Lbrt::Service).export if file.nil? or file == '-' puts dsl else open(file, 'wb') {|f| f.puts dsl } end end end
Version data entries
8 entries across 8 versions & 1 rubygems