@@ -78,24 +78,24 @@ def create
78
78
return unless resource [ :scale ]
79
79
instructions = resource [ :scale ] . map { |k , v | "#{ k } =#{ v } " }
80
80
Puppet . info ( "Scaling compose project #{ name } : #{ instructions . join ( ' ' ) } " )
81
- args = [ compose_files , '-p' , name , 'scale' ] . insert ( 2 , resource [ :options ] ) . compact + instructions
81
+ args = [ compose_files , '-p' , name , 'scale' ] . insert ( 3 , resource [ :options ] ) . compact + instructions
82
82
dockercompose ( args )
83
83
end
84
84
85
85
def destroy
86
86
Puppet . info ( "Removing all containers for compose project #{ name } " )
87
- kill_args = [ compose_files , '-p' , name , 'kill' ] . insert ( 2 , resource [ :options ] ) . compact
87
+ kill_args = [ compose_files , '-p' , name , 'kill' ] . insert ( 3 , resource [ :options ] ) . compact
88
88
dockercompose ( kill_args )
89
- rm_args = [ compose_files , '-p' , name , 'rm' , '--force' , '-v' ] . insert ( 2 , resource [ :options ] ) . compact
89
+ rm_args = [ compose_files , '-p' , name , 'rm' , '--force' , '-v' ] . insert ( 3 , resource [ :options ] ) . compact
90
90
dockercompose ( rm_args )
91
91
end
92
92
93
93
def restart
94
94
return unless exists?
95
95
Puppet . info ( "Rebuilding and Restarting all containers for compose project #{ name } " )
96
- kill_args = [ compose_files , '-p' , name , 'kill' ] . insert ( 2 , resource [ :options ] ) . compact
96
+ kill_args = [ compose_files , '-p' , name , 'kill' ] . insert ( 3 , resource [ :options ] ) . compact
97
97
dockercompose ( kill_args )
98
- build_args = [ compose_files , '-p' , name , 'build' ] . insert ( 2 , resource [ :options ] ) . compact
98
+ build_args = [ compose_files , '-p' , name , 'build' ] . insert ( 3 , resource [ :options ] ) . compact
99
99
dockercompose ( build_args )
100
100
create
101
101
end
0 commit comments