Permalink
Browse files

moving gunbai to a realm scope

Change-Id: I35d82b874a26f484d7404db6ce7cc8fe17b9abd9
  • Loading branch information...
1 parent c9197a3 commit 631be86b0a1634b0dade75a96fc4edd00f805fd3 Travis Dempsey committed Mar 10, 2014
Showing with 28 additions and 29 deletions.
  1. +0 −24 spec/fixtures/gunbai.rb
  2. +26 −0 spec/fixtures/realms/samurai.rb
  3. +2 −5 spec/spec_helper.rb
View
@@ -1,24 +0,0 @@
-Ironfan.cluster 'gunbai' do
- cloud(:ec2) do
- permanent false
- availability_zones ['us-east-1d']
- flavor 't1.micro'
- backing 'ebs'
- image_name 'natty'
- bootstrap_distro 'ubuntu10.04-ironfan'
- chef_client_script 'client.rb'
- mount_ephemerals
- end
-
- environment :dev
-
- role :ssh
- cloud(:ec2).security_group(:ssh).authorize_port_range(22..22)
-
- facet :hub do
- end
-
- facet :spoke do
- environment :other
- end
-end
@@ -0,0 +1,26 @@
+Ironfan.realm 'samurai' do
+ cluster 'gunbai' do
+ cloud(:ec2) do
+ permanent false
+ availability_zones ['us-east-1d']
+ flavor 't1.micro'
+ backing 'ebs'
+ image_name 'natty'
+ bootstrap_distro 'ubuntu10.04-ironfan'
+ chef_client_script 'client.rb'
+ mount_ephemerals
+ end
+
+ environment :dev
+
+ role :ssh
+ cloud(:ec2).security_group(:ssh).authorize_port_range(22..22)
+
+ facet :hub do
+ end
+
+ facet :spoke do
+ environment :other
+ end
+ end
+end
View
@@ -14,12 +14,9 @@
Pathname.register_paths(code: File.expand_path('../..', __FILE__),
spec: [:code, 'spec'],
fixtures: [:spec, 'fixtures'],
- support: [:spec, 'support'],
- features: [:spec, 'acceptance'],
- steps: [:features, 'steps'])
+ support: [:spec, 'support'])
Dir[Pathname.path_to(:support).join('**/*.rb')].each{ |f| require f }
-Dir[Pathname.path_to(:steps).join('**/*.rb')].each{ |f| require f }
RSpec.configure do |cfg|
def ironfan_go!
@@ -29,7 +26,7 @@ def ironfan_go!
Chef::Config.instance_eval do
knife.merge!(aws_access_key_id: 'access_key',
aws_secret_access_key: 'secret')
- cluster_path Pathname.path_to(:fixtures).to_s
+ cluster_path Pathname.path_to(:fixtures).join('clusters').to_s
end
Ironfan.ui = Chef::Knife::UI.new(STDOUT, STDERR, STDIN, {})

0 comments on commit 631be86

Please sign in to comment.