File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
require "clamp" # gem 'clamp'
2
2
require "logstash/errors"
3
3
4
- class LogStash ::Agent2 < Clamp ::Command
4
+ class LogStash ::Agent < Clamp ::Command
5
5
option [ "-f" , "--config" ] , "CONFIG_PATH" ,
6
6
I18n . t ( "logstash.agent.flag.config" ) ,
7
7
:attribute_name => :config_path
@@ -241,4 +241,4 @@ def load_config(path)
241
241
end
242
242
return config
243
243
end # def load_config
244
- end # class LogStash::Agent2
244
+ end # class LogStash::Agent
Original file line number Diff line number Diff line change @@ -91,12 +91,6 @@ def run(args)
91
91
command = args . shift
92
92
commands = {
93
93
"version" => lambda { emit_version ( args ) } ,
94
- "agent" => lambda do
95
- require "logstash/agent"
96
- agent = LogStash ::Agent . new
97
- @runners << agent
98
- return agent . run ( args )
99
- end ,
100
94
"web" => lambda do
101
95
require "logstash/web/runner"
102
96
web = LogStash ::Web ::Runner . new
@@ -173,7 +167,7 @@ def wait
173
167
require "pry"
174
168
return binding . pry
175
169
end ,
176
- "agent2 " => lambda do
170
+ "agent " => lambda do
177
171
require "logstash/agent2"
178
172
# Hack up a runner
179
173
runner = Class . new do
@@ -182,7 +176,7 @@ def initialize(args)
182
176
end
183
177
def run
184
178
@thread = Thread . new do
185
- @result = LogStash ::Agent2 . run ( $0, @args )
179
+ @result = LogStash ::Agent . run ( $0, @args )
186
180
end
187
181
end
188
182
def wait
You can’t perform that action at this time.
0 commit comments