Skip to content

Instantly share code, notes, and snippets.

{
"Name": _("Name"),
"Description": _("Description"),
"Has %system been updated?": _("Has %system been updated?")
}
def run(plan)
step = next_step(plan)
puts step
end
def next_step(plan)
case plan
when ExecutionPlan::Sequence
step = check_plan(plan)
when ExecutionPlan::Concurrence
NoMethodError
/home/ehelms/workspace/dynflow/lib/dynflow/execution/step.rb:45:in `action'
/home/ehelms/workspace/dynflow/lib/dynflow/execution/step.rb:16:in `run'
/home/ehelms/workspace/dynflow/lib/dynflow/worker.rb:6:in `run'
./bin/step_consumer.rb:41:in `process_step'
./bin/step_consumer.rb:30:in `block (2 levels) in run'
<div class="detail">
<span class="info-label">{{ "Content View" | i18n }}</span>
<span class="info-value" alch-edit-select="system.content_view.name"
options="contentViews.records" on-save="setContentView(system.content_view)">
</span>
</div>
.directive('alchEditSelect', function() {
Caveats based on the blog post: http://www.emeraldreverie.org/2012/10/creating-development-environment-with.html
This may come in handy - http://lukas.zapletalovi.com/2011/12/setting-hostname-properly-in-fedora-and.html
Step 1:
You can set libvirt's network to assign a static IP to the machine with Foreman on it by adding the following line when editing the network configuration:
args << generate_payload(options) if [:post, :put].include?(method)
def generate_payload(options)
if options.has_key?(:body)
return options[:body]
elsif options.has_key?(:payload)
return format_payload(options[:payload])
end
end
angular.module('Bastion.test-mocks').factory('Repository', function() {
var Repository, mockRepository;
mockRepository = {
id: 1,
failed: false,
$update: function(success, error) {
if (self.failed) {
error({ data: {errors: {}}});
@ehelms
ehelms / Rakefile
Last active December 23, 2015 06:49
desc 'Compile stand alone engine assets'
task 'assets:precompile:engine' do
require 'sprockets'
require 'sprockets/railtie'
require 'uglifier'
require 'sass/rails/compressor'
require File.expand_path('../lib/splice_reports', __FILE__)
precompile = [
'splice_reports/splice.css',
rake_tasks do
Rake::Task['db:seed'].enhance do
Katello::Engine.load_seed
end
end
  1. Follow standard Katello development instructions that include installing Katello via RPM and switching to git

  2. Clone Foreman beside Katello, such that:

     workspace/
     worksapce/foreman
     workspace/katello
    
  3. cd foreman

  4. copy settings.yml.sample to settings.yml

  5. Create local Gemfile - vim bundler.d/Gemfile.local.rb