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
--- !ruby/object:EmsCluster | |
raw_attributes: | |
id: '1000000000001' | |
name: Test Cluster | |
ems_id: '1000000000001' | |
created_on: '2016-05-25 15:33:59.972368' | |
updated_on: '2016-05-25 15:33:59.972368' | |
uid_ems: domain-c10309 | |
ha_enabled: f | |
ha_admit_control: t |
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
#!/bin/bash | |
# Ignore file-only checkouts | |
[[ $3 -ne 1 ]] && exit 0 | |
git_root=$(git rev-parse --show-toplevel) | |
root=$git_root | |
[[ -d "$root/vmdb" ]] && root="$root/vmdb" | |
gemfile_lock="$root/Gemfile.lock" |
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
digraph CloudNetworking { | |
graph [ fontname="Helvetica-Bold" ] | |
node [ id="\N" shape="Mrecord" style="filled" fontname="Helvetica" fillcolor="#ffffff" penwidth="2" ] | |
edge [ arrowsize="0.5" fontname="Helvetica" ] | |
label = "Cloud Networking" | |
style = "rounded" | |
openstack_provider [label="OpenstackProvider"] |
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
# PostgreSQL | |
# | |
# Development version of the standard database.yml that handles switching | |
# between different version branches. For example, on trunk it will look for a | |
# database named vmdb_development, but on the 3.3.2.12 branch it will look for | |
# a database named vmdb_development_3_3_2. | |
# | |
# <% unless $db_yml_loaded %> | |
# <% $db_yml_loaded = true %> | |
# <% version = File.read(Rails.root.join('VERSION')).chomp rescue 'master' %> |
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
Loading development environment (Rails 4.2.4) | |
[1] pry(main)> e = ExtManagementSystem.first; nil | |
ExtManagementSystem Load (0.8ms) SELECT "ext_management_systems".* FROM "ext_management_systems" ORDER BY "ext_management_systems"."id" ASC LIMIT 1 | |
ExtManagementSystem Inst Including Associations (314.9ms - 1rows) | |
=> nil | |
[2] pry(main)> d = e.descendants_arranged; nil | |
(0.6ms) SELECT COUNT(*) FROM "relationships" WHERE "relationships"."resource_id" = $1 AND "relationships"."resource_type" = $2 AND "relationships"."relationship" = $3 [["resource_id", 1000000000002], ["resource_type", "ExtManagementSystem"], ["relationship", "ems_metadata"]] | |
Relationship Load (0.3ms) SELECT "relationships".* FROM "relationships" WHERE "relationships"."resource_id" = $1 AND "relationships"."resource_type" = $2 AND "relationships"."relationship" = $3 ORDER BY "relationships"."id" ASC LIMIT 1 [["resource_id", 1000000000002], ["resource_type", "ExtManagementSystem"], ["relationship", "ems_metadata"]] | |
Relationship Inst I |
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
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb | |
index 2dff37f..25e5623 100644 | |
--- a/spec/spec_helper.rb | |
+++ b/spec/spec_helper.rb | |
@@ -76,6 +76,25 @@ RSpec.configure do |config| | |
} | |
config.include RakeTaskExampleGroup, :type => :rake_task | |
+ config.before(:suite) do | |
+ $counts_by_example = {} |
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
irb(main):001:0> require 'objspace' | |
=> true | |
irb(main):002:0> GC.start | |
=> nil | |
irb(main):003:0> GC.start | |
=> nil | |
irb(main):004:0> ObjectSpace.dump_all | |
=> #<File:/var/folders/y3/p3qvt8mj7v36kg5m6_mfdfgm0000gn/T/rubyheap20151012-93687-1kakmc5.json> | |
irb(main):005:0> ObjectSpace.trace_object_allocations_start | |
=> nil |
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
diff --git a/generated_slick.grid.css b/app/assets/stylesheets/slick.grid.css | |
index fb2bede..6cc53a4 100644 | |
--- a/generated_slick.grid.css | |
+++ b/app/assets/stylesheets/slick.grid.css | |
@@ -4,14 +4,21 @@ In order to preserve the uniform grid appearance, all cell styles need to have p | |
No built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS | |
classes should alter those! | |
*/ | |
-/* line 10, /Users/jfrey/.gem/ruby/2.2.3/gems/rails-assets-slickgrid-2.1.0/app/assets/stylesheets/slickgrid/slick.grid.scss */ | |
+ |
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
diff --git a/Gemfile b/Gemfile | |
index 90b36f7..75077b4 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -4,6 +4,8 @@ eval_gemfile(File.expand_path("gems/pending/Gemfile", __dir__)) | |
# VMDB specific gems | |
# | |
+gem 'influxdb' | |
+ |
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
require 'open4' | |
CASE = 'ruby -e "STDERR.puts \'a\'*70000; STDOUT.puts \'Hi\'"' | |
puts CASE | |
puts "---" | |
status = Open4.open4(CASE) do |pid, stdin, stdout, stderr| | |
stdin.close | |
threads = [ | |
Thread.new { stdout.each_line { |l| puts "STDOUT: #{l}" } }, | |
Thread.new { stderr.each_line { |l| puts "STDERR: #{l}" } } |