-
Follow standard Katello development instructions that include installing Katello via RPM and switching to git
-
Clone Foreman beside Katello, such that:
workspace/ worksapce/foreman workspace/katello
-
cd foreman
-
copy settings.yml.sample to settings.yml
-
Create local Gemfile -
vim bundler.d/Gemfile.local.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": _("Name"), | |
"Description": _("Description"), | |
"Has %system been updated?": _("Has %system been updated?") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake_tasks do | |
Rake::Task['db:seed'].enhance do | |
Katello::Engine.load_seed | |
end | |
end |