Sha256: 5606f6c1217cf82459ee952ca34948517072e2e13996dc9ee98acf2fae6710a6

Contents?: true

Size: 386 Bytes

Versions: 11

Compression:

Stored size: 386 Bytes

Contents

class SiblingsController < ApplicationController
   def index
     @siblings = Sibling.all
   end

   def deploy
     @sibling = Sibling.find(params[:id])
     if @sibling.deploy
       redirect_to siblings_deploys_path, notice: "Deploy has been queued."
     else
       redirect_to siblings_deploys_path, alert: "Something went wrong. Deploy has not been queued."
     end
   end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
g5_sibling_deployer_engine-0.7.0 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.6.3 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.6.2 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.6.1 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.5.0 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.4.2 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.4.1 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.4.0 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.3.3 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.3.2 app/controllers/siblings_controller.rb
g5_sibling_deployer_engine-0.2.6 app/controllers/siblings_controller.rb