popo 0.1.7 → 0.1.8
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.
- data/bin/popo +1 -1
- data/lib/popo.rb +10 -8
- data/lib/popo/constants.rb +8 -5
- data/lib/popo/error.rb +8 -0
- data/lib/popo/git_utils.rb +1 -1
- data/lib/popo/runner.rb +73 -82
- data/lib/popo/sync.rb +61 -43
- data/lib/popo/utils.rb +6 -7
- data/lib/popo/version.rb +1 -1
- data/popo.gemspec +0 -1
- data/script/.zshrc +54 -0
- data/script/poporc +35 -21
- metadata +11 -9
data/bin/popo
CHANGED
data/lib/popo.rb
CHANGED
@@ -8,12 +8,14 @@ require File.join(File.dirname(__FILE__), 'popo/version')
|
|
8
8
|
module Popo
|
9
9
|
POPO_LIB_ROOT = File.join(File.dirname(__FILE__), 'popo')
|
10
10
|
|
11
|
-
autoload :Constants,
|
12
|
-
autoload :Database,
|
13
|
-
autoload :
|
14
|
-
autoload :
|
15
|
-
autoload :
|
16
|
-
autoload :
|
17
|
-
autoload :
|
18
|
-
autoload :
|
11
|
+
autoload :Constants, File.join(POPO_LIB_ROOT, 'constants')
|
12
|
+
autoload :Database, File.join(POPO_LIB_ROOT, 'database')
|
13
|
+
autoload :Error, File.join(POPO_LIB_ROOT, 'error')
|
14
|
+
autoload :GitUtils, File.join(POPO_LIB_ROOT, 'git_utils')
|
15
|
+
autoload :Initializer, File.join(POPO_LIB_ROOT, 'initializer')
|
16
|
+
autoload :Runner, File.join(POPO_LIB_ROOT, 'runner')
|
17
|
+
autoload :RVM, File.join(POPO_LIB_ROOT, 'rvm')
|
18
|
+
autoload :Service, File.join(POPO_LIB_ROOT, 'service')
|
19
|
+
autoload :Sync, File.join(POPO_LIB_ROOT, 'sync')
|
20
|
+
autoload :Utils, File.join(POPO_LIB_ROOT, 'utils')
|
19
21
|
end
|
data/lib/popo/constants.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
module Popo
|
2
2
|
module Constants
|
3
|
-
POPORC
|
3
|
+
POPORC = 'script/poporc'
|
4
4
|
DEFAULT_CONFIG_FILE = "popo_config.yml"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
DEFAULT_POPO_TARGET = "development"
|
6
|
+
POPO_WORK_PATH = ".manifest"
|
7
|
+
POPO_YML_FILE = "popo.yml"
|
8
|
+
POPO_CONFIG = {}
|
9
|
+
POPO_DIR_KEY = "sync.directories"
|
10
|
+
POPO_KEY_VALUES = ['branch', 'repo']
|
11
|
+
POPO_COMMANDS = ['sync', 'rvm', 'migrate', 'diff', 'status']
|
9
12
|
end
|
10
13
|
end
|
data/lib/popo/error.rb
ADDED
data/lib/popo/git_utils.rb
CHANGED
data/lib/popo/runner.rb
CHANGED
@@ -12,15 +12,12 @@ module Popo
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def initialize(args)
|
15
|
-
@
|
16
|
-
|
17
|
-
|
18
|
-
@options = {}
|
19
|
-
@cabler_options = {}
|
15
|
+
@db_opts = {}
|
16
|
+
@options = {}
|
17
|
+
@app_root = ENV['popo_path'] || Dir.pwd
|
20
18
|
@options[:verbose] = false
|
21
|
-
@options[:target] = 'development'
|
22
19
|
|
23
|
-
if Utils.has_popo_config?(@
|
20
|
+
if Utils.has_popo_config?(@app_root)
|
24
21
|
@options[:target] = POPO_CONFIG['target']
|
25
22
|
end
|
26
23
|
|
@@ -65,114 +62,108 @@ module Popo
|
|
65
62
|
|
66
63
|
optparse.parse!
|
67
64
|
|
68
|
-
if args.length
|
65
|
+
if args.length < 1
|
69
66
|
Utils.say optparse.help
|
70
67
|
else
|
71
|
-
|
68
|
+
# set manifest usable constants
|
69
|
+
Object.const_set("POPO_PATH", @app_root)
|
70
|
+
Object.const_set("POPO_TARGET", DEFAULT_POPO_TARGET)
|
72
71
|
Object.const_set("POPO_LOCATION", @options[:location])
|
73
72
|
Object.const_set("POPO_USER", @options[:user])
|
74
73
|
|
75
|
-
@
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
74
|
+
@db_opts[:path] = File.join(@app_root, POPO_WORK_PATH)
|
75
|
+
@db_opts[:target] = ENV['CABLING_TARGET'] || @options[:target] || DEFAULT_POPO_TARGET
|
76
|
+
@db_opts[:location] = ENV['CABLING_LOCATION'] || @options[:location]
|
77
|
+
@db_opts[:verbose] = @options[:verbose]
|
78
|
+
|
79
|
+
mandatory = [:path, :manifest]
|
80
|
+
mandatory = mandatory.select { |p| @options[p].nil? }
|
81
|
+
|
82
|
+
if args.first == 'init' and !mandatory.empty?
|
83
|
+
Error.say "Missing options: #{mandatory.join(', ')}"
|
84
|
+
end
|
85
|
+
|
80
86
|
self.run(args)
|
81
87
|
end
|
82
88
|
end
|
83
89
|
|
84
90
|
def run(args)
|
85
|
-
|
91
|
+
if POPO_COMMANDS.include?(args)
|
92
|
+
Utils.in_popo?(@app_root)
|
93
|
+
end
|
94
|
+
|
95
|
+
cmd = args.shift
|
96
|
+
|
97
|
+
case cmd
|
86
98
|
when 'init'
|
87
99
|
config = get_config!
|
88
100
|
|
89
|
-
if
|
90
|
-
|
91
|
-
raise "manifest #{@options[:manifest]} does not exist in #{DEFAULT_CONFIG_FILE}!"
|
92
|
-
end
|
93
|
-
else
|
94
|
-
raise "manifest (-m) option needed!"
|
101
|
+
if config['manifests'][@options[:manifest]].nil?
|
102
|
+
Error.say "\'#{@options[:manifest]}\' does not exist in #{DEFAULT_CONFIG_FILE}!"
|
95
103
|
end
|
96
104
|
|
97
|
-
if
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
else
|
103
|
-
raise "Path already exists!"
|
104
|
-
end
|
105
|
+
if !File.exist?(File.join(@app_root, @options[:path]))
|
106
|
+
@db_opts[:path] = File.join(@app_root, @options[:path], POPO_WORK_PATH)
|
107
|
+
db = Database.new(@app_root, @db_opts)
|
108
|
+
|
109
|
+
Initializer.boot(config, @options, db).setup
|
105
110
|
else
|
106
|
-
|
111
|
+
Error.say "Path already exists!"
|
107
112
|
end
|
108
113
|
when 'sync'
|
109
|
-
|
110
|
-
|
111
|
-
db.boot_database
|
114
|
+
db = Database.new(@app_root, @db_opts)
|
115
|
+
db.boot_database
|
112
116
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
RVM.new(@popo_path, args, db).setup
|
120
|
-
end
|
117
|
+
Sync.new(@app_root, args, db).sync
|
118
|
+
when 'rvm'
|
119
|
+
db = Database.new(@app_root, @db_opts)
|
120
|
+
db.boot_database
|
121
|
+
|
122
|
+
RVM.new(@app_root, args, db).setup
|
121
123
|
when 'migrate'
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
db.migrate_database
|
126
|
-
end
|
124
|
+
db = Database.new(@app_root, @db_opts)
|
125
|
+
db.boot_database
|
126
|
+
db.migrate_database
|
127
127
|
when 'status'
|
128
|
-
Utils.say `cat #{File.join(@
|
129
|
-
when 'upload'
|
130
|
-
puts "Pushing!"
|
128
|
+
Utils.say `cat #{File.join(@app_root, POPO_WORK_PATH, POPO_YML_FILE)}`
|
131
129
|
when 'bash'
|
132
|
-
|
130
|
+
sh!(cmd)
|
133
131
|
when 'zsh'
|
134
|
-
|
132
|
+
sh!(cmd)
|
135
133
|
when 'diff'
|
136
134
|
GitUtils.branch_diff(Dir.pwd)
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
end
|
135
|
+
when 'stop' || 'start' || 'restart'
|
136
|
+
db = Database.new(@app_root, @db_opts)
|
137
|
+
db.boot_database
|
141
138
|
|
142
|
-
|
143
|
-
if Utils.has_popo_config?(Dir.pwd)
|
144
|
-
|
145
|
-
poporc_path = File.join(Dir.pwd, POPO_WORK_PATH, POPORC)
|
146
|
-
target = POPO_CONFIG['target']
|
147
|
-
path = POPO_CONFIG['path']
|
148
|
-
location = POPO_CONFIG['location']
|
149
|
-
|
150
|
-
bashcmd = "%s popo_target=%s popo_path=%s \
|
151
|
-
popo_location=%s %s --rcfile %s" \
|
152
|
-
% [ENV_CMD, target, path, location, BASH_CMD, poporc_path]
|
153
|
-
|
154
|
-
exec(bashcmd)
|
139
|
+
Service.new(@app_root, cmd, db).run
|
155
140
|
else
|
156
|
-
|
141
|
+
Error.say "#{args} not a valid command!"
|
157
142
|
end
|
158
143
|
end
|
159
144
|
|
160
|
-
def
|
161
|
-
if Utils.has_popo_config?(
|
162
|
-
|
163
|
-
zdotdir = File.join(Dir.pwd, POPO_WORK_PATH, 'script')
|
164
|
-
target = POPO_CONFIG['target']
|
145
|
+
def sh!(shell)
|
146
|
+
if Utils.has_popo_config?(@app_root)
|
165
147
|
path = POPO_CONFIG['path']
|
148
|
+
target = POPO_CONFIG['target']
|
166
149
|
location = POPO_CONFIG['location']
|
167
150
|
|
168
|
-
|
169
|
-
|
170
|
-
%s" \
|
171
|
-
% [ENV_CMD, target, path, location, zdotdir, ZSH_CMD]
|
151
|
+
if shell == 'bash'
|
152
|
+
poporc = File.expand_path('../../../script/poporc', __FILE__)
|
172
153
|
|
173
|
-
|
174
|
-
|
175
|
-
|
154
|
+
shcmd = "%s popo_target=%s popo_path=%s \
|
155
|
+
popo_location=%s %s --rcfile %s" \
|
156
|
+
% [ENV_CMD, target, path, location, BASH_CMD, poporc]
|
157
|
+
else
|
158
|
+
zdotdir = File.expand_path('../../../script', __FILE__)
|
159
|
+
|
160
|
+
shcmd = "%s popo_target=%s popo_path=%s \
|
161
|
+
popo_location=%s ZDOTDIR=%s\
|
162
|
+
%s" \
|
163
|
+
% [ENV_CMD, target, path, location, zdotdir, ZSH_CMD]
|
164
|
+
end
|
165
|
+
|
166
|
+
exec(shcmd)
|
176
167
|
end
|
177
168
|
end
|
178
169
|
|
@@ -182,7 +173,7 @@ module Popo
|
|
182
173
|
elsif File.exist?(File.join('/etc', DEFAULT_CONFIG_FILE))
|
183
174
|
config_file_path = "/etc/#{DEFAULT_CONFIG_FILE}"
|
184
175
|
else
|
185
|
-
|
176
|
+
Error.say "No popo_config.yml found in #{ENV['HOME']} or /etc"
|
186
177
|
end
|
187
178
|
|
188
179
|
config_hash = YAML.load_file(config_file_path)
|
data/lib/popo/sync.rb
CHANGED
@@ -2,73 +2,91 @@ module Popo
|
|
2
2
|
class Sync
|
3
3
|
include Constants
|
4
4
|
|
5
|
-
def initialize(
|
5
|
+
def initialize(popo_path, args, db)
|
6
6
|
@db = db
|
7
|
-
@
|
8
|
-
@
|
7
|
+
@sync_list = @db.get(POPO_DIR_KEY).split(',')
|
8
|
+
@popo_path = popo_path
|
9
9
|
@cwd = Dir.pwd
|
10
|
-
@
|
10
|
+
@projects = args
|
11
11
|
@info = {}
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
14
|
+
def sync
|
15
|
+
@projects.each do |project|
|
16
|
+
if project =~ /\//
|
17
|
+
@info['key'] = convert_to_key(project)
|
18
|
+
@info['path'] = File.join(@popo_path, project)
|
16
19
|
|
17
|
-
|
18
|
-
@repos.each do |repo|
|
19
|
-
if repo =~ /\//
|
20
|
-
r = repo.split('/')
|
21
|
-
@info[:parent], @info[:name] = r
|
22
|
-
@info[:key] = [@info[:parent], @info[:name]].join('.')
|
23
|
-
@info[:path] = File.join(@app_root, @info[:parent], @info[:name])
|
20
|
+
get_values(@info['key'])
|
24
21
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
else
|
29
|
-
gather_many(repo)
|
30
|
-
end
|
22
|
+
get_project
|
23
|
+
else
|
24
|
+
sync_all(project)
|
31
25
|
end
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
end
|
27
|
+
|
28
|
+
if @projects.empty?
|
29
|
+
if @cwd.eql? @popo_path
|
30
|
+
@sync_list.each { |p| sync_all(p) }
|
36
31
|
else
|
37
|
-
|
38
|
-
|
32
|
+
project = @cwd.split('/') - @popo_path.split('/')
|
33
|
+
|
34
|
+
sync_all(convert_to_key(project))
|
39
35
|
end
|
40
36
|
end
|
41
37
|
end
|
42
38
|
|
43
|
-
def
|
44
|
-
|
39
|
+
def sync_all(project)
|
40
|
+
if @sync_list.include? project
|
41
|
+
children = @db.get_children(project)
|
45
42
|
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
if children.empty?
|
44
|
+
Error.say "No values for parent key \'#{project}\'."
|
45
|
+
end
|
46
|
+
|
47
|
+
children.each do |c|
|
48
|
+
@info['key'] = [project, c].join('.')
|
49
49
|
|
50
|
-
|
51
|
-
@info[:key] = [repo, c].join('.')
|
52
|
-
get_repo_values(@info[:key])
|
53
|
-
@info[:path] = File.join(@app_root, repo, c)
|
50
|
+
get_values(@info['key'])
|
54
51
|
|
55
|
-
|
52
|
+
@info['path'] = File.join(@popo_path, project.gsub('.','/'), c)
|
53
|
+
|
54
|
+
get_project
|
55
|
+
end
|
56
|
+
else
|
57
|
+
get_values(project)
|
58
|
+
|
59
|
+
@info['path'] = File.join(@popo_path, project.gsub('.','/'))
|
60
|
+
|
61
|
+
get_project
|
56
62
|
end
|
57
63
|
end
|
58
64
|
|
59
|
-
def
|
60
|
-
if !File.exists?(@info[
|
61
|
-
GitUtils.git_clone(@info[
|
65
|
+
def get_project
|
66
|
+
if !File.exists?(@info['path'])
|
67
|
+
GitUtils.git_clone(@info[''], @info['path'], @info['branch'])
|
62
68
|
else
|
63
|
-
|
64
|
-
|
69
|
+
if POPO_CONFIG['target'] == DEFAULT_POPO_TARGET
|
70
|
+
GitUtils.git_stash(@info['path'])
|
71
|
+
end
|
72
|
+
|
73
|
+
GitUtils.git_update(@info['path'], @info['branch'])
|
65
74
|
end
|
66
75
|
end
|
67
76
|
|
68
77
|
|
69
|
-
def
|
70
|
-
|
71
|
-
|
78
|
+
def get_values(key)
|
79
|
+
POPO_KEY_VALUES.each do |v|
|
80
|
+
@info[v] = @db.get("#{key}.#{v}")
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
def convert_to_key(project)
|
85
|
+
if project.is_a? String
|
86
|
+
project.split('/').join('.')
|
87
|
+
else
|
88
|
+
project.join('.')
|
89
|
+
end
|
72
90
|
end
|
73
91
|
end
|
74
92
|
end
|
data/lib/popo/utils.rb
CHANGED
@@ -19,15 +19,15 @@ module Popo
|
|
19
19
|
|
20
20
|
def self.in_popo?(root_path)
|
21
21
|
if !ENV.include?('popo_path')
|
22
|
-
|
22
|
+
Error.say "You must be inside popo!"
|
23
23
|
end
|
24
24
|
true
|
25
25
|
end
|
26
26
|
|
27
27
|
def self.has_popo_config?(root_path)
|
28
|
-
popo_work_path = File.
|
28
|
+
popo_work_path = File.join(root_path, POPO_WORK_PATH)
|
29
29
|
|
30
|
-
popo_yml = File.
|
30
|
+
popo_yml = File.join(popo_work_path, POPO_YML_FILE)
|
31
31
|
|
32
32
|
if File.exists?(popo_yml)
|
33
33
|
popo_config = YAML.load_file(popo_yml)
|
@@ -35,14 +35,13 @@ module Popo
|
|
35
35
|
if popo_config.is_a?(Hash)
|
36
36
|
POPO_CONFIG.update(popo_config)
|
37
37
|
else
|
38
|
-
|
38
|
+
Error.say "#{POPO_YML_FILE} seems to be wrong."
|
39
39
|
end
|
40
|
-
|
41
|
-
true
|
42
40
|
else
|
43
41
|
false
|
44
|
-
# raise "#{POPO_YML_FILE} not found."
|
45
42
|
end
|
43
|
+
|
44
|
+
true
|
46
45
|
end
|
47
46
|
end
|
48
47
|
end
|
data/lib/popo/version.rb
CHANGED
data/popo.gemspec
CHANGED
data/script/.zshrc
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
if [[ -z "$popo_path" ]] ; then
|
2
|
+
echo "FAIL Please set the popo_path environment var"
|
3
|
+
exit -1
|
4
|
+
fi
|
5
|
+
|
6
|
+
if [[ -z "$popo_target" ]] ; then
|
7
|
+
echo "FAIL Please set the popo_target environment var"
|
8
|
+
exit -1
|
9
|
+
fi
|
10
|
+
|
11
|
+
BASEPATH=`which basename`
|
12
|
+
BASENAME=`$BASEPATH $popo_path`
|
13
|
+
|
14
|
+
|
15
|
+
export rvm_reload_flag=1
|
16
|
+
export rvm_prefix=$popo_path
|
17
|
+
|
18
|
+
export CABLING_PATH=$popo_path/.manifest/cabling
|
19
|
+
export CABLING_TARGET=$popo_target
|
20
|
+
|
21
|
+
if [[ -n "$popo_location" ]] ; then
|
22
|
+
export CABLING_LOCATION=$popo_location
|
23
|
+
fi
|
24
|
+
|
25
|
+
export DBGET_PATH=$popo_path/.manifest
|
26
|
+
|
27
|
+
unset $(env | awk -F= '/^rvm_/{print $1" "}')
|
28
|
+
|
29
|
+
export rvm_path=$popo_path/rvm
|
30
|
+
source $rvm_path/scripts/rvm
|
31
|
+
|
32
|
+
rubies_path=$rvm_path/rubies
|
33
|
+
|
34
|
+
unset PALMADE_GEMS_DIR
|
35
|
+
export PATH="$rvm_path/bin:$popo_path/tools:$PATH"
|
36
|
+
|
37
|
+
source ~/.zshrc
|
38
|
+
|
39
|
+
# Load default rvm if rubies folder is not empty
|
40
|
+
if [ -d $rubies_path ] && [ "$(ls -A $rubies_path)" ] ; then
|
41
|
+
rvm default
|
42
|
+
fi
|
43
|
+
|
44
|
+
echo ""
|
45
|
+
echo "Welcome to the popoed zsh environment, where you can play with your very own popo."
|
46
|
+
echo ""
|
47
|
+
echo " popo path: $popo_path"
|
48
|
+
echo " popo target: $popo_target"
|
49
|
+
echo ""
|
50
|
+
echo "Remember to keep things clean and civil around here."
|
51
|
+
echo "To go back to your normal world, just hit exit."
|
52
|
+
echo ""
|
53
|
+
echo "But wait, you ask, who needs popo? Baahh, popo's for n00bs!"
|
54
|
+
echo ""
|
data/script/poporc
CHANGED
@@ -1,20 +1,48 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
if [[ -z "$popo_path" ]] ; then
|
4
|
-
|
5
|
-
|
4
|
+
echo "FAIL Please set the popo_path environment var"
|
5
|
+
exit -1
|
6
6
|
fi
|
7
7
|
|
8
8
|
if [[ -z "$popo_target" ]] ; then
|
9
|
-
|
10
|
-
|
9
|
+
echo "FAIL Please set the popo_target environment var"
|
10
|
+
exit -1
|
11
11
|
fi
|
12
12
|
|
13
|
-
|
13
|
+
YELLOW="\[\033[33m\]"
|
14
14
|
NORMAL="\[\033[0;0m\]"
|
15
15
|
BASEPATH=`which basename`
|
16
16
|
BASENAME=`$BASEPATH $popo_path`
|
17
17
|
|
18
|
+
|
19
|
+
export rvm_reload_flag=1
|
20
|
+
export rvm_prefix=$popo_path
|
21
|
+
|
22
|
+
export CABLING_PATH=$popo_path/.manifest/cabling
|
23
|
+
export CABLING_TARGET=$popo_target
|
24
|
+
|
25
|
+
if [[ -n "$popo_location" ]] ; then
|
26
|
+
export CABLING_LOCATION=$popo_location
|
27
|
+
fi
|
28
|
+
|
29
|
+
export DBGET_PATH=$popo_path/.manifest
|
30
|
+
|
31
|
+
unset $(env | awk -F= '/^rvm_/{print $1" "}')
|
32
|
+
|
33
|
+
export rvm_path=$popo_path/rvm
|
34
|
+
source $rvm_path/scripts/rvm
|
35
|
+
|
36
|
+
rubies_path=$rvm_path/rubies
|
37
|
+
# Load default rvm if rubies folder is not empty
|
38
|
+
if [ -d $rubies_path ] && [ "$(ls -A $rubies_path)" ] ; then
|
39
|
+
rvm default
|
40
|
+
fi
|
41
|
+
|
42
|
+
unset PALMADE_GEMS_DIR
|
43
|
+
export PATH="$rvm_path/bin:$popo_path/tools:$PATH"
|
44
|
+
|
45
|
+
|
18
46
|
if [[ $PS1 != "" ]] ; then
|
19
47
|
if [[ -f /etc/bash.bashrc ]] ; then
|
20
48
|
source /etc/bash.bashrc
|
@@ -25,29 +53,15 @@ if [[ $PS1 != "" ]] ; then
|
|
25
53
|
fi
|
26
54
|
|
27
55
|
if [[ $BASENAME != $popo_target ]] ; then
|
28
|
-
export PS1="$
|
56
|
+
export PS1="$YELLOW(popo $popo_target/$BASENAME) $NORMAL$PS1"
|
29
57
|
else
|
30
|
-
export PS1="$
|
58
|
+
export PS1="$YELLOW(popo $popo_target) $NORMAL$PS1"
|
31
59
|
fi
|
32
60
|
fi
|
33
61
|
|
34
|
-
# Let's unload system installed rvm and move path prefix to popo
|
35
|
-
unset $(env | awk -F= '/^rvm_/{print $1" "}')
|
36
|
-
export rvm_reload_flag=1
|
37
|
-
export rvm_prefix=$popo_path
|
38
|
-
export CABLING_PATH=$popo_path/.popo/cabling.yml
|
39
|
-
export CABLING_TARGET=$popo_target
|
40
|
-
source $rvm_prefix/rvm/scripts/rvm
|
41
|
-
|
42
|
-
# Load default rvm
|
43
|
-
rvm default 1>/dev/null 2>&1
|
44
|
-
unset PALMADE_GEMS_DIR
|
45
|
-
export PATH="$popo_path/rvm/bin:$popo_path/tools:$PATH"
|
46
|
-
export rvm_path=$popo_path/rvm
|
47
62
|
if [[ -z "$PS1" ]] ; then
|
48
63
|
rvm $*
|
49
64
|
else
|
50
|
-
echo ""
|
51
65
|
echo "Welcome to the popoed bash environment, where you can play with your very own popo."
|
52
66
|
echo ""
|
53
67
|
echo " popo path: $popo_path"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-29 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
16
|
-
requirement: &
|
16
|
+
requirement: &23544220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *23544220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &23543520 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *23543520
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: cableguy
|
38
|
-
requirement: &
|
38
|
+
requirement: &23542420 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *23542420
|
47
47
|
description: Ruby and rails repo tool
|
48
48
|
email:
|
49
49
|
- poymode@gmail.com
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/popo.rb
|
66
66
|
- lib/popo/constants.rb
|
67
67
|
- lib/popo/database.rb
|
68
|
+
- lib/popo/error.rb
|
68
69
|
- lib/popo/git_utils.rb
|
69
70
|
- lib/popo/initializer.rb
|
70
71
|
- lib/popo/runner.rb
|
@@ -74,6 +75,7 @@ files:
|
|
74
75
|
- lib/popo/version.rb
|
75
76
|
- lib/templates/envy.yml
|
76
77
|
- popo.gemspec
|
78
|
+
- script/.zshrc
|
77
79
|
- script/Rakefile
|
78
80
|
- script/envy.template
|
79
81
|
- script/envyrc
|
@@ -103,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
105
|
- !ruby/object:Gem::Version
|
104
106
|
version: '0'
|
105
107
|
requirements: []
|
106
|
-
rubyforge_project:
|
108
|
+
rubyforge_project:
|
107
109
|
rubygems_version: 1.8.10
|
108
110
|
signing_key:
|
109
111
|
specification_version: 3
|