tomo 1.19.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/exe/tomo +1 -0
  3. data/lib/tomo/cli/command.rb +2 -0
  4. data/lib/tomo/cli/common_options.rb +2 -0
  5. data/lib/tomo/cli/completions.rb +2 -0
  6. data/lib/tomo/cli/deploy_options.rb +2 -0
  7. data/lib/tomo/cli/error.rb +2 -0
  8. data/lib/tomo/cli/interrupted_error.rb +2 -0
  9. data/lib/tomo/cli/options.rb +2 -0
  10. data/lib/tomo/cli/parser.rb +2 -0
  11. data/lib/tomo/cli/project_options.rb +2 -0
  12. data/lib/tomo/cli/rules/argument.rb +2 -0
  13. data/lib/tomo/cli/rules/switch.rb +2 -0
  14. data/lib/tomo/cli/rules/value_switch.rb +2 -0
  15. data/lib/tomo/cli/rules.rb +2 -0
  16. data/lib/tomo/cli/rules_evaluator.rb +2 -0
  17. data/lib/tomo/cli/state.rb +2 -0
  18. data/lib/tomo/cli/usage.rb +2 -0
  19. data/lib/tomo/cli.rb +2 -0
  20. data/lib/tomo/colors.rb +2 -0
  21. data/lib/tomo/commands/completion_script.rb +2 -0
  22. data/lib/tomo/commands/default.rb +2 -0
  23. data/lib/tomo/commands/deploy.rb +2 -0
  24. data/lib/tomo/commands/help.rb +2 -0
  25. data/lib/tomo/commands/init.rb +2 -0
  26. data/lib/tomo/commands/run.rb +2 -0
  27. data/lib/tomo/commands/setup.rb +2 -0
  28. data/lib/tomo/commands/tasks.rb +2 -0
  29. data/lib/tomo/commands/version.rb +2 -0
  30. data/lib/tomo/commands.rb +2 -0
  31. data/lib/tomo/configuration/dsl/batch_block.rb +2 -0
  32. data/lib/tomo/configuration/dsl/config_file.rb +2 -0
  33. data/lib/tomo/configuration/dsl/environment_block.rb +2 -0
  34. data/lib/tomo/configuration/dsl/error_formatter.rb +3 -1
  35. data/lib/tomo/configuration/dsl/hosts_and_settings.rb +2 -0
  36. data/lib/tomo/configuration/dsl/tasks_block.rb +2 -0
  37. data/lib/tomo/configuration/dsl.rb +2 -0
  38. data/lib/tomo/configuration/environment.rb +2 -0
  39. data/lib/tomo/configuration/glob.rb +2 -0
  40. data/lib/tomo/configuration/plugin_file_not_found_error.rb +2 -0
  41. data/lib/tomo/configuration/plugins_registry/file_resolver.rb +2 -0
  42. data/lib/tomo/configuration/plugins_registry/gem_resolver.rb +3 -1
  43. data/lib/tomo/configuration/plugins_registry.rb +2 -0
  44. data/lib/tomo/configuration/project_not_found_error.rb +2 -0
  45. data/lib/tomo/configuration/role_based_task_filter.rb +2 -0
  46. data/lib/tomo/configuration/unknown_environment_error.rb +4 -2
  47. data/lib/tomo/configuration/unknown_plugin_error.rb +4 -2
  48. data/lib/tomo/configuration/unspecified_environment_error.rb +2 -0
  49. data/lib/tomo/configuration.rb +2 -0
  50. data/lib/tomo/console/key_reader.rb +4 -2
  51. data/lib/tomo/console/menu.rb +6 -4
  52. data/lib/tomo/console/non_interactive_error.rb +4 -2
  53. data/lib/tomo/console.rb +2 -0
  54. data/lib/tomo/error/suggestions.rb +2 -0
  55. data/lib/tomo/error.rb +2 -0
  56. data/lib/tomo/host.rb +2 -0
  57. data/lib/tomo/logger/tagged_io.rb +2 -0
  58. data/lib/tomo/logger.rb +2 -0
  59. data/lib/tomo/path.rb +2 -0
  60. data/lib/tomo/paths.rb +2 -0
  61. data/lib/tomo/plugin/bundler/helpers.rb +2 -0
  62. data/lib/tomo/plugin/bundler/tasks.rb +2 -0
  63. data/lib/tomo/plugin/bundler.rb +2 -0
  64. data/lib/tomo/plugin/core/helpers.rb +2 -0
  65. data/lib/tomo/plugin/core/tasks.rb +2 -0
  66. data/lib/tomo/plugin/core.rb +2 -0
  67. data/lib/tomo/plugin/env/tasks.rb +2 -0
  68. data/lib/tomo/plugin/env.rb +2 -0
  69. data/lib/tomo/plugin/git/helpers.rb +2 -0
  70. data/lib/tomo/plugin/git/tasks.rb +2 -0
  71. data/lib/tomo/plugin/git.rb +2 -0
  72. data/lib/tomo/plugin/nodenv/tasks.rb +2 -0
  73. data/lib/tomo/plugin/nodenv.rb +2 -0
  74. data/lib/tomo/plugin/puma/tasks.rb +2 -0
  75. data/lib/tomo/plugin/puma.rb +2 -0
  76. data/lib/tomo/plugin/rails/helpers.rb +2 -0
  77. data/lib/tomo/plugin/rails/tasks.rb +2 -0
  78. data/lib/tomo/plugin/rails.rb +2 -0
  79. data/lib/tomo/plugin/rbenv/tasks.rb +2 -0
  80. data/lib/tomo/plugin/rbenv.rb +2 -0
  81. data/lib/tomo/plugin/testing.rb +2 -0
  82. data/lib/tomo/plugin.rb +2 -0
  83. data/lib/tomo/plugin_dsl.rb +2 -0
  84. data/lib/tomo/remote.rb +2 -0
  85. data/lib/tomo/result.rb +3 -1
  86. data/lib/tomo/runtime/concurrent_ruby_load_error.rb +2 -0
  87. data/lib/tomo/runtime/concurrent_ruby_thread_pool.rb +2 -0
  88. data/lib/tomo/runtime/context.rb +2 -0
  89. data/lib/tomo/runtime/current.rb +2 -0
  90. data/lib/tomo/runtime/execution_plan.rb +2 -0
  91. data/lib/tomo/runtime/explanation.rb +3 -1
  92. data/lib/tomo/runtime/host_execution_step.rb +2 -0
  93. data/lib/tomo/runtime/inline_thread_pool.rb +2 -0
  94. data/lib/tomo/runtime/no_tasks_error.rb +2 -0
  95. data/lib/tomo/runtime/privileged_task.rb +2 -0
  96. data/lib/tomo/runtime/settings_interpolation.rb +3 -1
  97. data/lib/tomo/runtime/settings_required_error.rb +3 -1
  98. data/lib/tomo/runtime/task_aborted_error.rb +2 -0
  99. data/lib/tomo/runtime/task_runner.rb +2 -0
  100. data/lib/tomo/runtime/template_not_found_error.rb +2 -0
  101. data/lib/tomo/runtime/unknown_task_error.rb +3 -1
  102. data/lib/tomo/runtime.rb +2 -0
  103. data/lib/tomo/script.rb +2 -0
  104. data/lib/tomo/shell_builder.rb +2 -0
  105. data/lib/tomo/ssh/child_process.rb +2 -0
  106. data/lib/tomo/ssh/connection.rb +2 -0
  107. data/lib/tomo/ssh/connection_error.rb +2 -0
  108. data/lib/tomo/ssh/connection_validator.rb +2 -0
  109. data/lib/tomo/ssh/error.rb +2 -0
  110. data/lib/tomo/ssh/executable_error.rb +2 -0
  111. data/lib/tomo/ssh/options.rb +4 -2
  112. data/lib/tomo/ssh/permission_error.rb +2 -0
  113. data/lib/tomo/ssh/script_error.rb +2 -0
  114. data/lib/tomo/ssh/unknown_error.rb +2 -0
  115. data/lib/tomo/ssh/unsupported_version_error.rb +2 -0
  116. data/lib/tomo/ssh.rb +2 -0
  117. data/lib/tomo/task_api.rb +2 -0
  118. data/lib/tomo/task_library.rb +2 -0
  119. data/lib/tomo/testing/Dockerfile +1 -1
  120. data/lib/tomo/testing/cli_extensions.rb +2 -0
  121. data/lib/tomo/testing/cli_tester.rb +2 -0
  122. data/lib/tomo/testing/connection.rb +2 -0
  123. data/lib/tomo/testing/docker_image.rb +4 -2
  124. data/lib/tomo/testing/host_extensions.rb +3 -1
  125. data/lib/tomo/testing/local.rb +2 -0
  126. data/lib/tomo/testing/log_capturing.rb +2 -0
  127. data/lib/tomo/testing/mock_plugin_tester.rb +2 -0
  128. data/lib/tomo/testing/mocked_exec_error.rb +2 -0
  129. data/lib/tomo/testing/mocked_exit_error.rb +2 -0
  130. data/lib/tomo/testing/remote_extensions.rb +2 -0
  131. data/lib/tomo/testing/ssh_extensions.rb +2 -0
  132. data/lib/tomo/testing/systemctl.rb +1 -0
  133. data/lib/tomo/testing/ubuntu_setup.sh +3 -1
  134. data/lib/tomo/testing.rb +2 -0
  135. data/lib/tomo/version.rb +3 -1
  136. data/lib/tomo.rb +3 -1
  137. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0ab21d55aa30f611411e7184fea0b3456d0ffd8c1877ea74ad8394284286895
4
- data.tar.gz: 38e0273b4304685c8515e8d150a2d140f9b9e64e7bac1eb73f3fc7881394d80b
3
+ metadata.gz: 818e5cca74aa96ed436ea031e78780f927b07fdbdfd9cf43a52b35ddca393a48
4
+ data.tar.gz: cfacd1ee7b6d7bd0748c55493f7b3e0e2d1aedb022ff095b406bfaec85129254
5
5
  SHA512:
6
- metadata.gz: 837b9fe3ca56ddaa228d4e519b13e27efa06edbfbc2af71d3dfb3b387ab1d0c3ae6dfe03ea4093abb0fc1212ead742a810c425c46b10a9e534d1b897d1905057
7
- data.tar.gz: 43d50fcc0e8b1c4ac385ad1e476b26351f1f364cf7ea52b6d29350c9bbd03179fffc898c9f3af1d2ca08cb9f40590624a37602e5c41a06aee9e0fa24cbc24da1
6
+ metadata.gz: ad640825bf0973ef78e3a29d79290487f1a7fa73550fc40e26bb464df1438bb66d8659035588f3219a9661ad7be5aafbd43e28e0cf62e95a8977fafa68a210fc
7
+ data.tar.gz: d329fb4f7bfa764532f453f9cadd92ae83060503de15ba97a235eeec0ce47faa1e520b6113622bebc63a00b93822ea0de662a247117554fba0d478e11baf8ba9
data/exe/tomo CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "tomo"
4
5
  Tomo::CLI.new.call(ARGV)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  module CommonOptions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Completions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  module DeployOptions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Error < ::Tomo::Error
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class InterruptedError < Error
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Options
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "forwardable"
2
4
 
3
5
  module Tomo
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  module ProjectOptions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tomo::CLI::Rules
2
4
  class Argument
3
5
  def initialize(label, values_proc:, multiple: false, required: false)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tomo::CLI::Rules
2
4
  class Switch
3
5
  def initialize(key, *switches, callback_proc:, required: false, &convert_proc)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tomo::CLI::Rules
2
4
  class ValueSwitch < Switch
3
5
  include Tomo::Colors
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Rules
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class RulesEvaluator
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class State
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  class Usage
data/lib/tomo/cli.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class CLI
3
5
  autoload :Command, "tomo/cli/command"
data/lib/tomo/colors.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Colors
3
5
  ANSI_CODES = {
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class CompletionScript
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Default < CLI::Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Deploy < CLI::Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Help
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "erb"
2
4
  require "fileutils"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Run < CLI::Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Setup < CLI::Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Tasks < CLI::Command
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  class Version < CLI::Command
data/lib/tomo/commands.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  module Commands
3
5
  autoload :CompletionScript, "tomo/commands/completion_script"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -55,7 +57,7 @@ module Tomo
55
57
  last = [dsl_lines.length, error_line_no + 1].min
56
58
  width = last.to_s.length
57
59
 
58
- (first..last).each_with_object("") do |line_no, result|
60
+ (first..last).each_with_object(+"") do |line_no, result|
59
61
  line = dsl_lines[line_no - 1]
60
62
  line_no_prefix = line_no.to_s.rjust(width)
61
63
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  module DSL
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class Environment
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class Glob
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class PluginFileNotFoundError < Error
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class PluginsRegistry::FileResolver
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class PluginsRegistry::GemResolver
4
- PLUGIN_PREFIX = "tomo/plugin".freeze
6
+ PLUGIN_PREFIX = "tomo/plugin"
5
7
  private_constant :PLUGIN_PREFIX
6
8
 
7
9
  def self.resolve(name)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class PluginsRegistry
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class ProjectNotFoundError < Tomo::Error
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class RoleBasedTaskFilter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class UnknownEnvironmentError < Tomo::Error
@@ -23,10 +25,10 @@ module Tomo
23
25
  ERROR
24
26
 
25
27
  if suggestions.any?
26
- error << suggestions.to_console
28
+ error + suggestions.to_console
27
29
  else
28
30
  envs = known_environments.map { |env| blue(" #{env}") }
29
- error << <<~ENVS
31
+ error + <<~ENVS
30
32
 
31
33
  The following environments are available:
32
34
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class UnknownPluginError < Tomo::Error
@@ -9,9 +11,9 @@ module Tomo
9
11
  ERROR
10
12
 
11
13
  sugg = Error::Suggestions.new(dictionary: known_plugins, word: name)
12
- error << sugg.to_console if sugg.any?
14
+ error += sugg.to_console if sugg.any?
13
15
 
14
- error << gem_suggestion
16
+ error + gem_suggestion
15
17
  end
16
18
 
17
19
  private
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  class UnspecifiedEnvironmentError < Tomo::Error
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Configuration
3
5
  autoload :DSL, "tomo/configuration/dsl"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "forwardable"
2
4
  require "io/console"
3
5
  require "time"
@@ -8,7 +10,7 @@ module Tomo
8
10
  extend Forwardable
9
11
 
10
12
  def initialize(input=$stdin)
11
- @buffer = ""
13
+ @buffer = +""
12
14
  @input = input
13
15
  end
14
16
 
@@ -35,7 +37,7 @@ module Tomo
35
37
  end
36
38
 
37
39
  def read_chars_nonblock
38
- chars = ""
40
+ chars = +""
39
41
  loop do
40
42
  next_char = raw { read_nonblock(1) }
41
43
  break if next_char.nil?
@@ -1,13 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "forwardable"
2
4
  require "io/console"
3
5
 
4
6
  module Tomo
5
7
  class Console
6
8
  class Menu
7
- ARROW_UP = "\e[A".freeze
8
- ARROW_DOWN = "\e[B".freeze
9
- RETURN = "\r".freeze
10
- ENTER = "\n".freeze
9
+ ARROW_UP = "\e[A"
10
+ ARROW_DOWN = "\e[B"
11
+ RETURN = "\r"
12
+ ENTER = "\n"
11
13
 
12
14
  extend Forwardable
13
15
  include Colors
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Console
3
5
  class NonInteractiveError < Tomo::Error
@@ -5,8 +7,8 @@ module Tomo
5
7
 
6
8
  def to_console
7
9
  error = ""
8
- error << "#{operation_name} requires an interactive console."
9
- error << "\n\n#{seems_like_ci}" if ci_var
10
+ error += "#{operation_name} requires an interactive console."
11
+ error += "\n\n#{seems_like_ci}" if ci_var
10
12
  error
11
13
  end
12
14
 
data/lib/tomo/console.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "forwardable"
2
4
  require "io/console"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Error
3
5
  class Suggestions
data/lib/tomo/error.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Error < StandardError
3
5
  autoload :Suggestions, "tomo/error/suggestions"
data/lib/tomo/host.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Host
3
5
  PATTERN = /^(?:(\S+)@)?(\S*?)$/
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Logger
3
5
  class TaggedIO
data/lib/tomo/logger.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "forwardable"
2
4
 
3
5
  module Tomo
data/lib/tomo/path.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "delegate"
2
4
  require "pathname"
3
5
 
data/lib/tomo/paths.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo
2
4
  class Paths
3
5
  def initialize(settings)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo::Plugin::Bundler
2
4
  module Helpers
3
5
  def bundle(*args, **opts)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "yaml"
2
4
 
3
5
  module Tomo::Plugin::Bundler
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "bundler/helpers"
2
4
  require_relative "bundler/tasks"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "shellwords"
2
4
 
3
5
  module Tomo::Plugin::Core
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "json"
2
4
  require "securerandom"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "core/helpers"
2
4
  require_relative "core/tasks"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "monitor"
2
4
  require "securerandom"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "env/tasks"
2
4
 
3
5
  module Tomo::Plugin
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo::Plugin::Git
2
4
  module Helpers
3
5
  def git(*args, **opts)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "shellwords"
2
4
  require "time"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "git/helpers"
2
4
  require_relative "git/tasks"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "shellwords"
2
4
 
3
5
  module Tomo::Plugin::Nodenv
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "nodenv/tasks"
2
4
 
3
5
  module Tomo::Plugin
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo::Plugin::Puma
2
4
  class Tasks < Tomo::TaskLibrary
3
5
  SystemdUnit = Struct.new(:name, :template, :path)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "puma/tasks"
2
4
 
3
5
  module Tomo::Plugin
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo::Plugin::Rails
2
4
  module Helpers
3
5
  def rails(*args, **opts)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tomo::Plugin::Rails
2
4
  class Tasks < Tomo::TaskLibrary
3
5
  def assets_precompile
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "rails/helpers"
2
4
  require_relative "rails/tasks"
3
5