Skip to content

Commit 413e16d

Browse files
committed
Remove unused last_ip_number
1 parent 6ae0bd3 commit 413e16d

4 files changed

Lines changed: 0 additions & 17 deletions

File tree

lib/sagittarius/orchestrator/container.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ def healthy?
3636
internal_container.info['State']['Status'] == 'running'
3737
end
3838

39-
def last_ip_number
40-
raise NotImplementedError
41-
end
42-
4339
def self.[](container)
4440
Containers.const_get(container.capitalize).new
4541
end

lib/sagittarius/orchestrator/containers/postgresql.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ def healthy?
3939
super && internal_container.exec(%w[pg_isready]).last.zero?
4040
end
4141

42-
def last_ip_number
43-
4
44-
end
45-
4642
def orchestrator_connection_details
4743
return {} unless healthy?
4844

lib/sagittarius/orchestrator/containers/redis.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ def ports
2828
}
2929
end
3030

31-
def last_ip_number
32-
5
33-
end
34-
3531
def orchestrator_connection_details
3632
return {} unless healthy?
3733

lib/tasks/orchestrator.rake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ namespace :orchestrator do
3232
operator.ensure_container_up!(container)
3333
end
3434

35-
task state: :build_state do
36-
p Sagittarius::Orchestrator::State.containers
37-
p Sagittarius::Orchestrator::State.volumes
38-
end
39-
4035
task connect_self: :build_state do
4136
Sagittarius::Orchestrator::Operator.ensure_self_connected!
4237
end

0 commit comments

Comments
 (0)