learn-generate 1.0.12 → 1.0.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59702b4b218cd2baa8de818eda14862f4f11b563
|
4
|
+
data.tar.gz: e1b2a467637a515285475a1a51dec37e5445aea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddeec14af60777b4f295d4b710ff00a4a3d6638c27041d3fa758bb2e98cf292cd8d763f2a0f07d1dcca1b9bdba1b18659d1558e04b1ae2ce379ca589470f17ac
|
7
|
+
data.tar.gz: dd0c6f937318e6fe53d9dd1742e82506107327a9b9f987223109ad6d586030ea8f87edfeadae449f054f20856f8a6baa8308ebd0683c1575753f4dc14e14b160
|
@@ -2,13 +2,13 @@ module LearnGenerate
|
|
2
2
|
class IosLab
|
3
3
|
class LiftoffBackup
|
4
4
|
def backup
|
5
|
-
`mv
|
6
|
-
`mv
|
5
|
+
`mv ~/.liftoffrc{,.bak}`
|
6
|
+
`mv ~/.liftoff{,.bak}`
|
7
7
|
end
|
8
8
|
|
9
9
|
def restore
|
10
|
-
`mv
|
11
|
-
`mv
|
10
|
+
`mv ~/.liftoffrc{.bak,}`
|
11
|
+
`mv ~/.liftoff{.bak,}`
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -13,8 +13,8 @@ module LearnGenerate
|
|
13
13
|
def initialize(lab_name)
|
14
14
|
@lab_name = lab_name
|
15
15
|
@liftoff_installed = !(`brew ls --versions liftoff 2>/dev/null`.strip.empty?)
|
16
|
-
@liftoffrc_exists = File.exists?('
|
17
|
-
@liftoff_dir_exists = File.exists?('
|
16
|
+
@liftoffrc_exists = File.exists?(File.expand_path('~/.liftoffrc'))
|
17
|
+
@liftoff_dir_exists = File.exists?(File.expand_path('~/.liftoff'))
|
18
18
|
@liftoff_backup = LearnGenerate::IosLab::LiftoffBackup.new
|
19
19
|
templates_path = File.expand_path('~/.learn-generate/templates')
|
20
20
|
templates_git_path = File.expand_path('~/.learn-generate/templates/.git')
|
@@ -43,7 +43,7 @@ module LearnGenerate
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def restore_if_necessary
|
46
|
-
`rm -rf
|
46
|
+
`rm -rf ~/.liftoff ~/.liftoffrc`
|
47
47
|
|
48
48
|
if liftoff_settings_files_exist?
|
49
49
|
liftoff_backup.restore
|
@@ -56,9 +56,9 @@ module LearnGenerate
|
|
56
56
|
|
57
57
|
def copy_settings_files
|
58
58
|
if has_templates_dir
|
59
|
-
`cp -a #{full_templates_path}/ios/.
|
59
|
+
`cp -a #{full_templates_path}/ios/. ~/`
|
60
60
|
else
|
61
|
-
`cp -a #{LearnGenerate::FileFinder.location_to_dir('../templates/ios')}/.
|
61
|
+
`cp -a #{LearnGenerate::FileFinder.location_to_dir('../templates/ios')}/. ~/`
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-generate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|