bcome 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 613edda110e0f6d9a425088ae6d81ea97c085c27
4
- data.tar.gz: f589219de99e684a05e8381ec4b4c1955c8f54b8
3
+ metadata.gz: 1e5ad52c558c3515f72c43cb7c54c1d4165bc934
4
+ data.tar.gz: 3428c855d24bf51d00da19614f5a3b15ebb305fb
5
5
  SHA512:
6
- metadata.gz: cfcb9cd3d9bfff842663a09f0e702ce7acf40f31022360727dde257f9f22190fde6a148f28e7976a2acf5ee9bf1b4ec53e39290f902b7cf7ddcd2c61f261af3d
7
- data.tar.gz: 38e06ddb8491f634c6fe5472e8f6a5ae30c2169819ea15ea108166ebc946999c20338458bccfed7e583d3cc5184237891aa514e5f14752e75ed467b39a9b7e8b
6
+ metadata.gz: 0483c9fda15a2df109e16934076b03891b6a2a43b68ee9b0173d4a0183856acbcf618bc6d76c4d75581d49b83b90349718e0879d4b0eeb869faffbf0c525b454
7
+ data.tar.gz: ebefd0feb9edfacfde0bfb897d9eca085de27d13a4a977f44b38766d2c48c755fe2ccbd6cf67261b821c50fec0fbbf6d1e003037287242220242762a3e465978
@@ -2,11 +2,11 @@
2
2
 
3
3
  ## Define your platforms
4
4
 
5
- Bcome assume that you have ‘platforms’. It assumes that a platform has ‘environments’, and that an environment has a collection of servers.
5
+ Bcome assumes that you have ‘platforms’. It assumes that a platform has ‘environments’, and that an environment has a collection of servers.
6
6
 
7
7
  ### The platforms config
8
8
 
9
- The platforms merely lists what platforms you have, and provides quick links to elements within them.
9
+ The platforms config merely lists what platforms you have, and provides quick links to elements within them.
10
10
 
11
11
  Create your platforms.yml config file in path/to/your/application/bcome/configs
12
12
 
data/lib/bcome/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bcome
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -10,6 +10,10 @@ module ::Bcome::Node
10
10
  def identifier
11
11
  @environment
12
12
  end
13
+
14
+ def bootstrap_settings
15
+ @bootstrap_settings
16
+ end
13
17
 
14
18
  def namespace
15
19
  "#{platform.namespace}/#{identifier}"
@@ -67,8 +67,12 @@ class String
67
67
  unless colour_data[:highlight]
68
68
  return Rainbow(self).color(colour)
69
69
  else
70
- highlight_colour = highlight_colour_codes[colour_data[:colour]]
71
- return Rainbow(self).color(highlight_colour).bg(colour)
70
+ coloured_string = Rainbow(self).color(colour)
71
+ return "\e[1m#{coloured_string}\033[0m"
72
+
73
+ #highlight_colour = highlight_colour_codes[colour_data[:colour]]
74
+ #highlight_string = Rainbow(self).color(highlight_colour).bg(colour)
75
+ return "\e[1m#{highlight_string}\033[0m"
72
76
  end
73
77
  end
74
78
 
data/lib/render_irb.rb CHANGED
@@ -5,7 +5,7 @@ class ::Bcome::RenderIrb
5
5
  print "\n\sNo resources collections found. Maybe you forgot to add any?".headsup
6
6
  else
7
7
  print "\n\s"
8
- puts "#{parent_collection.to_s.menu_title_green}\n\n".menu_title_green
8
+ puts "#{parent_collection.to_s.menu_title_green}:".menu_title_green
9
9
  items.each do |item|
10
10
  puts "\t*/added".danger + "\n" if item.highlight?
11
11
  print item.do_describe
@@ -15,7 +15,7 @@ class ::Bcome::RenderIrb
15
15
  end
16
16
 
17
17
  def menu(menu_items, stack_level_instance)
18
- menu_str = "\n\s#{"Standard Menu".menu_title_green}\n\n"
18
+ menu_str = "\n\s#{"Basic Commands".menu_title_green}\n\n"
19
19
  menu_items.each_with_index do |item, index|
20
20
  menu_str += construct_menu_item_string(item, index, :menu_item_green)
21
21
  end
@@ -28,8 +28,10 @@ module ::Bcome::Stack
28
28
 
29
29
  def do_describe
30
30
  description = "\n"
31
- description += "\t#{identifier.menu_item_green}\n"
32
- description += "\t" + "Description: ".menu_item_cyan + @meta_data[:description].menu_item_white + "\n"
31
+ description += "\tPlatform Name:".menu_item_cyan + "\s#{identifier.menu_item_green}\n"
32
+ description += "\t" + "Description:".menu_item_cyan + "\s#{@meta_data[:description].menu_item_white}" + "\n"
33
+ description += "\t" + "Location:".menu_item_magenta + "\s#{@meta_data[:location].menu_item_white}" + "\n" if @meta_data[:location]
34
+
33
35
  return description
34
36
  end
35
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Roderick (Webzakimbo)