Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
awesim-cli
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gateways
awesim-cli
Commits
89c6ebb7
Commit
89c6ebb7
authored
9 years ago
by
Eric Franz
Browse files
Options
Downloads
Patches
Plain Diff
pass args through to command
parent
867de131
No related branches found
Branches containing commit
Tags
v0.10.1
Tags containing commit
1 merge request
!17
Integrate rails application template into CLI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/awesim/rails_app_creator.rb
+2
-4
2 additions, 4 deletions
lib/awesim/rails_app_creator.rb
with
2 additions
and
4 deletions
lib/awesim/rails_app_creator.rb
+
2
−
4
View file @
89c6ebb7
...
...
@@ -4,15 +4,13 @@ module AweSim
class
RailsAppCreator
<
Thor
desc
"new"
,
"create a new app"
def
newapp
(
app_path
)
# TODO: add unit tests to make sure we pass everything in...
def
newapp
(
app_name
,
*
args
)
# TODO: make tpl location a class variable of Rails object
# or instance variable (can we pass it in as we instantiate it? add
# default value so we can customize it later)
tpl
=
"/nfs/17/efranz/dev/rails-application-template/awesim.rb"
say
"rails new
#{
app_
path
}
-m
#{
tpl
}
"
say
"rails new
#{
app_
name
}
-m
#{
tpl
}
#{
args
.
join
(
" "
)
}
\n
"
end
map
"new"
=>
"newapp"
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment