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
# (re)create DB | |
DB=dynflow_example; dropdb -U postgres "$DB"; createdb -U postgres "$DB" | |
# install staff | |
sudo yum install redis | |
sudo systemctl enable --now redis | |
# set DB connection - expect dynflow user with dynflow password | |
export DB_CONN_STRING='postgres://dynflow:dynflow@/dynflow_example' | |
# start dynflow with web dashboard | |
bundle exec ruby ./examples/remote_executor.rb observer | |
# running dynflow dashboard on http://localhost:4567/dynflow |
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
# app/models/compute_resources/foreman/model/vmware.rb | |
# ... | |
def supports_update? | |
true | |
end | |
# ... change to | |
def supports_update? | |
false | |
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
import React from 'react'; | |
import { mountNode } from 'foremanReact/common/MountingService'; | |
/** | |
* This tag can be used for mounting one react component from ComponentRegistry | |
* This way, we would decide to rewrite the mounter completely and we would make all components there to the custom tags. | |
*/ | |
class ComponentInRegistryElement extends HTMLElement { | |
connectedCallback() { | |
const mountPoint = document.createElement('span'); |
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
module Fog | |
module Vsphere | |
class Compute | |
class Real | |
def create_vm(attributes = {}) | |
# NOW | |
# stufff goes here.... | |
# AFTER | |
CreateVmRequest.new(connection).call(attributes) | |
end |
NewerOlder