Open akeelahmedqureshi opened 9 years ago
At the bottom is the snippet checking for a valid Startup Framework directory. Based on my experience the directory is unpacked as: "Startup Framework" so your command should be:
/home/cis/Downloads/Startup\ Framework
Tab complete is your friend here.
@ui-kit = "ui-kit"
...
if File.directory?(File.join(@pro_dir, "Developer"))
@pro_dir = File.join(@pro_dir, "Developer")
end
unless File.directory?(@pro_dir) && File.directory?(File.join(@pro_dir, @ui_kit))
raise "Invalid Startup Framework directory"
end
abc@abc:~/startupfw-rails$ rails generate startup_framework:install /home/cis/Downloads/StartupFramework /home/cis/.rvm/gems/ruby-2.1.2/gems/designmodo-startup_framework-rails-1.1.3.10/lib/generators/startup_framework/install/install_generator.rb:44:in'
copy_assets': Invalid Startup Framework directory (RuntimeError) from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/command.rb:27:in
run' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
block in invoke_all' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:ineach' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
map' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:ininvoke_all' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:232:in
dispatch' from /home/cis/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/base.rb:440:instart' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/generators.rb:157:in
invoke' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/commands/generate.rb:11:in<top (required)>' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in
require' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:inblock in require' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in
load_dependency' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:inrequire' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:135:in
generate_or_destroy' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:51:ingenerate' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in
run_command!' from /home/cis/.rvm/gems/ruby-2.1.2/gems/railties-4.1.6/lib/rails/commands.rb:17:in<top (required)>' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in
require' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:inblock in require' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in
load_dependency' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:inrequire' from /home/cis/startupfw-rails/bin/rails:8:in
<top (required)>' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:inload' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in
block in load' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:inload_dependency' from /home/cis/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in
load' from /home/cis/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /home/cis/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' from -e:1:in `