forked from mattbrictson/tomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtomo.rb
46 lines (40 loc) · 1.1 KB
/
tomo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module Tomo
autoload :CLI, "tomo/cli"
autoload :Colors, "tomo/colors"
autoload :Commands, "tomo/commands"
autoload :Configuration, "tomo/configuration"
autoload :Console, "tomo/console"
autoload :Error, "tomo/error"
autoload :Host, "tomo/host"
autoload :Logger, "tomo/logger"
autoload :Path, "tomo/path"
autoload :Paths, "tomo/paths"
autoload :Plugin, "tomo/plugin"
autoload :PluginDSL, "tomo/plugin_dsl"
autoload :Remote, "tomo/remote"
autoload :Result, "tomo/result"
autoload :Runtime, "tomo/runtime"
autoload :Script, "tomo/script"
autoload :ShellBuilder, "tomo/shell_builder"
autoload :SSH, "tomo/ssh"
autoload :TaskAPI, "tomo/task_api"
autoload :TaskLibrary, "tomo/task_library"
autoload :VERSION, "tomo/version"
DEFAULT_CONFIG_PATH = ".tomo/config.rb".freeze
class << self
attr_accessor :logger
attr_writer :debug, :dry_run
def debug?
!!@debug
end
def dry_run?
!!@dry_run
end
def bundled?
!!(defined?(Bundler) && ENV["BUNDLE_GEMFILE"])
end
end
self.debug = false
self.dry_run = false
self.logger = Logger.new
end