Sha256: 44c7676486335ce476d96b5131ff53f14d2ab096cd5015ea6f657d7efcebd4aa

Contents?: true

Size: 385 Bytes

Versions: 18

Compression:

Stored size: 385 Bytes

Contents

class RewordPuppetTemplateDescription < ActiveRecord::Migration
  def up
    JobTemplate.where(:name => 'Puppet Run Once - SSH Default').update_all(:description_format => 'Run Puppet once with "%{puppet_options}"')
  end

  def down
    JobTemplate.where(:name => 'Puppet Run Once - SSH Default').update_all(:description_format => '%{job_category} with "%{puppet_options}"')
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foreman_remote_execution-1.3.7 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.6 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.4.1 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.5 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.4 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.3 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.2 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.1 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.3.0 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.2.2 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.2.1 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.2.0 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.1.1 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.1.0 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-1.0.0 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-0.3.2 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-0.3.1 db/migrate/20160127162711_reword_puppet_template_description.rb
foreman_remote_execution-0.3.0 db/migrate/20160127162711_reword_puppet_template_description.rb