Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change tasks scopes to be easier to type.

  • Loading branch information...
commit afa7f475b486cef182076539d5d4041b7b91d72a 1 parent 0f79330
@peter-murach authored
View
7 lib/base.thor
@@ -1,11 +1,12 @@
#!/user/bin/ruby
module Dotfiles
-
class Base < Thor
include Thor::Actions
Thor::Sandbox::Dotfiles::Base.source_root File.expand_path('../..', __FILE__)
+ namespace :dotfiles
+
class_option :linkable_path, :type => :string
no_tasks do
@@ -47,6 +48,9 @@ module Dotfiles
base.source_root
end
+ def render_and_link_file()
+
+ end
end
desc 'install [PATH]', 'Hook dotfiles into system-standard positions.'
@@ -169,5 +173,4 @@ module Dotfiles
end
end
end # Base
-
end # Dotfiles
View
4 lib/git.thor
@@ -1,9 +1,10 @@
#!/user/bin/ruby
module Dotfiles
-
class Git < Base
+ namespace :git
+
no_tasks do
LINES_TO_REMOVE = 4
@@ -75,5 +76,4 @@ module Dotfiles
end
end # Git
-
end # Dotfiles
View
4 lib/ruby.thor
@@ -1,10 +1,11 @@
#!/user/bin/ruby
module Dotfiles
-
class Ruby < Base
include Thor::Actions
+ namespace :ruby
+
desc 'install [FILE]', 'Installs all ruby & irb files, saves your old files and symlinks new ones.'
method_options :force => :boolean
def install(component = nil)
@@ -18,5 +19,4 @@ module Dotfiles
end
end # Ruby
-
end # Dotfiles
View
4 lib/rvm.thor
@@ -1,9 +1,10 @@
#!/user/bin/ruby
module Dotfiles
-
class Rvm < Base
+ namespace :rvm
+
desc 'setup', 'Installs RVM'
def setup
say "Installing rvm for #{user}", :green
@@ -17,5 +18,4 @@ module Dotfiles
end
end # Rvm
-
end # Dotfiles
View
4 lib/tmux.thor
@@ -1,9 +1,10 @@
#!/user/bin/ruby
module Dotfiles
-
class Tmux < Base
+ namespace :tmux
+
desc 'setup', 'Installs Tmux'
method_option :force, :type => :boolean, :aliases => "-f", :default => false
def setup
@@ -28,5 +29,4 @@ module Dotfiles
end
end # Git
-
end # Dotfiles
View
4 lib/vim.thor
@@ -1,9 +1,10 @@
#!/user/bin/ruby
module Dotfiles
-
class Vim < Base
+ namespace :vim
+
no_tasks do
LINES_TO_REMOVE = 4
@@ -134,5 +135,4 @@ module Dotfiles
end
end # Vim
-
end # Dotfiles

0 comments on commit afa7f47

Please sign in to comment.
Something went wrong with that request. Please try again.