bcome 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/documentation/configuration.md +2 -2
- data/lib/bcome/version.rb +1 -1
- data/lib/nodes/environment.rb +4 -0
- data/lib/patches/string.rb +6 -2
- data/lib/render_irb.rb +2 -2
- data/lib/stack/platform.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e5ad52c558c3515f72c43cb7c54c1d4165bc934
|
4
|
+
data.tar.gz: 3428c855d24bf51d00da19614f5a3b15ebb305fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0483c9fda15a2df109e16934076b03891b6a2a43b68ee9b0173d4a0183856acbcf618bc6d76c4d75581d49b83b90349718e0879d4b0eeb869faffbf0c525b454
|
7
|
+
data.tar.gz: ebefd0feb9edfacfde0bfb897d9eca085de27d13a4a977f44b38766d2c48c755fe2ccbd6cf67261b821c50fec0fbbf6d1e003037287242220242762a3e465978
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
## Define your platforms
|
4
4
|
|
5
|
-
Bcome
|
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
data/lib/nodes/environment.rb
CHANGED
data/lib/patches/string.rb
CHANGED
@@ -67,8 +67,12 @@ class String
|
|
67
67
|
unless colour_data[:highlight]
|
68
68
|
return Rainbow(self).color(colour)
|
69
69
|
else
|
70
|
-
|
71
|
-
return
|
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}
|
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#{"
|
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
|
data/lib/stack/platform.rb
CHANGED
@@ -28,8 +28,10 @@ module ::Bcome::Stack
|
|
28
28
|
|
29
29
|
def do_describe
|
30
30
|
description = "\n"
|
31
|
-
description += "\
|
32
|
-
description += "\t" + "Description:
|
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
|
|