Module: WatchTower::CLI::Version::InstanceMethods

Defined in:
lib/watch_tower/cli/version.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/watch_tower/cli/version.rb', line 12

def self.included(base)
  base.class_eval <<-END, __FILE__, __LINE__ + 1
    desc "version", "Prints watchtower version and exits."
    def version
      puts "WatchTower version \#{WatchTower.version}"
    end
  END
end